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
withFrom
andTryFrom
trait.ScalarRef <-> ScalarRefImpl
withFrom
andTryFrom
trait.&ScalarImpl -> &Scalar
withimpl.as_int16()
.ScalarImpl -> Scalar
withimpl.into_int16()
.