risingwave_common::array

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 Array and ArrayBuilder.

  • ArrayImpl -> &Array with impl.as_int16().
  • ArrayImpl -> Array with impl.into_int16().
  • &ArrayImpl -> &Array with From trait.
  • ArrayImpl -> Array with From trait.
  • ArrayBuilder -> ArrayBuilderImpl with From trait.