Skip to main content

DecimalBytePartsArraySlotsExt

Trait DecimalBytePartsArraySlotsExt 

Source
pub trait DecimalBytePartsArraySlotsExt: TypedArrayRef<DecimalByteParts> {
    // Provided methods
    fn msp(&self) -> &ArrayRef { ... }
    fn lower_parts(&self) -> SlotSlice<'_> { ... }
    fn slots_view(&self) -> DecimalBytePartsSlotsView<'_> { ... }
}
Expand description

This encoding allow compression of decimals using integer compression schemes. Decimals can be compressed by narrowing the signed decimal value into the smallest signed value, then integer compression if that is a value ptype, otherwise the decimal can be split into parts. These parts can be individually compressed. This encoding will compress large signed decimals by removing the leading zeroes (after the sign) an i128 decimal could be converted into a [i64, u64] with further narrowing applied to either value. Typed array accessors for DecimalByteParts.

Provided Methods§

Source

fn msp(&self) -> &ArrayRef

Source

fn lower_parts(&self) -> SlotSlice<'_>

Source

fn slots_view(&self) -> DecimalBytePartsSlotsView<'_>

Returns a borrowed view of all slots.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§