risingwave_common::types

Macro impl_convert

source
macro_rules! impl_convert {
    ($( { $data_type:ident, $variant_name:ident, $suffix_name:ident, $scalar:ty, $scalar_ref:ty, $array:ty, $builder:ty } ),*) => { ... };
}
Expand description

impl_convert implements several conversions for Scalar.

  • Scalar <-> ScalarImpl with From and TryFrom trait.
  • ScalarRef <-> ScalarRefImpl with From and TryFrom trait.
  • &ScalarImpl -> &Scalar with impl.as_int16().
  • ScalarImpl -> Scalar with impl.into_int16().