Trait arrow::datatypes::DecimalType
source · [−]pub trait DecimalType: 'static + Send + Sync + DecimalTypeSealed {
type Native: NativeDecimalType;
const BYTE_LENGTH: usize;
const MAX_PRECISION: usize;
const MAX_SCALE: usize;
const TYPE_CONSTRUCTOR: fn(_: usize, _: usize) -> DataType;
const DEFAULT_TYPE: DataType;
}
Expand description
A trait over the decimal types, used by DecimalArray
to provide a generic
implementation across the various decimal types
Implemented by Decimal128Type
and Decimal256Type
for Decimal128Array
and Decimal256Array
respectively