DecimalBeBytes

Trait DecimalBeBytes 

源代码
trait DecimalBeBytes<const N: usize> {
    // Required method
    fn value_be_bytes(&self, idx: usize) -> [u8; N];
}
展开描述

一个最小的 trait,用于获取十进制数在 `idx` 处未缩放整数值的固定大小大端字节数组。

必需方法§

源代码

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

对外部类型的实现§

来源§

impl DecimalBeBytes<4> for Decimal32Array

仅在 crate feature small_decimals 可用。
来源§

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

来源§

impl DecimalBeBytes<8> for Decimal64Array

仅在 crate feature small_decimals 可用。
来源§

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

来源§

impl DecimalBeBytes<16> for Decimal128Array

来源§

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

来源§

impl DecimalBeBytes<32> for Decimal256Array

来源§

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

实现者§