DecimalBeBytes

Trait DecimalBeBytes 

Source
trait DecimalBeBytes<const N: usize> {
    // Required method
    fn value_be_bytes(&self, idx: usize) -> [u8; N];
}
Expand description

Minimal trait to obtain a big-endian fixed-size byte array for a decimal’s unscaled integer value at idx.

Required Methods§

Source

fn value_be_bytes(&self, idx: usize) -> [u8; N]

Implementations on Foreign Types§

Source§

impl DecimalBeBytes<4> for Decimal32Array

Available on crate feature small_decimals only.
Source§

fn value_be_bytes(&self, idx: usize) -> [u8; 4]

Source§

impl DecimalBeBytes<8> for Decimal64Array

Available on crate feature small_decimals only.
Source§

fn value_be_bytes(&self, idx: usize) -> [u8; 8]

Source§

impl DecimalBeBytes<16> for Decimal128Array

Source§

fn value_be_bytes(&self, idx: usize) -> [u8; 16]

Source§

impl DecimalBeBytes<32> for Decimal256Array

Source§

fn value_be_bytes(&self, idx: usize) -> [u8; 32]

Implementors§