Enum parquet::data_type::Decimal [−][src]
pub enum Decimal { Int32 { value: [u8; 4], precision: i32, scale: i32, }, Int64 { value: [u8; 8], precision: i32, scale: i32, }, Bytes { value: ByteArray, precision: i32, scale: i32, }, }
Expand description
Rust representation for Decimal values.
This is not a representation of Parquet physical type, but rather a wrapper for DECIMAL logical type, and serves as container for raw parts of decimal values: unscaled value in bytes, precision and scale.
Variants
Decimal backed by i32
.
Decimal backed by i64
.
Decimal backed by byte array.
Implementations
Creates new decimal value from i32
.
Creates new decimal value from i64
.
Creates new decimal value from ByteArray
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Decimal
impl UnwindSafe for Decimal
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V