[][src]Struct arrow::ipc::gen::Schema::Decimal

pub struct Decimal<'a> {
    pub _tab: Table<'a>,
}

Exact decimal value represented as an integer value in two's complement. Currently only 128-bit (16-byte) integers are used but this may be expanded in the future. The representation uses the endianness indicated in the Schema.

Fields

_tab: Table<'a>

Implementations

impl<'a> Decimal<'a>[src]

pub fn init_from_table(table: Table<'a>) -> Self[src]

pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>(
    _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
    args: &'args DecimalArgs
) -> WIPOffset<Decimal<'bldr>>
[src]

pub const VT_PRECISION: VOffsetT[src]

pub const VT_SCALE: VOffsetT[src]

pub const VT_BITWIDTH: VOffsetT[src]

pub fn precision(&self) -> i32[src]

Total number of decimal digits

pub fn scale(&self) -> i32[src]

Number of digits after the decimal point "."

pub fn bitWidth(&self) -> i32[src]

Number of bits per value. The only accepted width right now is 128 but this field exists for forward compatibility so that other bit widths may be supported in future format versions. We use bitWidth for consistency with Int::bitWidth.

Trait Implementations

impl<'a> Clone for Decimal<'a>[src]

impl<'a> Copy for Decimal<'a>[src]

impl<'a> Debug for Decimal<'a>[src]

impl<'a> Follow<'a> for Decimal<'a>[src]

type Inner = Decimal<'a>

impl<'a> PartialEq<Decimal<'a>> for Decimal<'a>[src]

impl<'a> StructuralPartialEq for Decimal<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Decimal<'a>

impl<'a> Send for Decimal<'a>

impl<'a> Sync for Decimal<'a>

impl<'a> Unpin for Decimal<'a>

impl<'a> UnwindSafe for Decimal<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,