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
impl Decimal
[src]
impl Decimal
[src]pub fn from_i32(value: i32, precision: i32, scale: i32) -> Self
[src]
pub fn from_i32(value: i32, precision: i32, scale: i32) -> Self
[src]Creates new decimal value from i32
.
pub fn from_i64(value: i64, precision: i32, scale: i32) -> Self
[src]
pub fn from_i64(value: i64, precision: i32, scale: i32) -> Self
[src]Creates new decimal value from i64
.
pub fn from_bytes(value: ByteArray, precision: i32, scale: i32) -> Self
[src]
pub fn from_bytes(value: ByteArray, precision: i32, scale: i32) -> Self
[src]Creates new decimal value from ByteArray
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Decimal
impl Send for Decimal
impl Sync for Decimal
impl Unpin for Decimal
impl UnwindSafe for Decimal
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,