Skip to main content

NativeDecimalType

Trait NativeDecimalType 

Source
trait NativeDecimalType: DecimalType {
    type NativeBytes: AsRef<[u8]>;

    // Required method
    fn to_be_bytes(value: Self::Native) -> Self::NativeBytes;
}

Required Associated Types§

Required Methods§

Source

fn to_be_bytes(value: Self::Native) -> Self::NativeBytes

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl NativeDecimalType for Decimal32Type

Source§

type NativeBytes = [u8; 4]

Source§

fn to_be_bytes(value: Self::Native) -> Self::NativeBytes

Source§

impl NativeDecimalType for Decimal64Type

Source§

type NativeBytes = [u8; 8]

Source§

fn to_be_bytes(value: Self::Native) -> Self::NativeBytes

Source§

impl NativeDecimalType for Decimal128Type

Source§

type NativeBytes = [u8; 16]

Source§

fn to_be_bytes(value: Self::Native) -> Self::NativeBytes

Source§

impl NativeDecimalType for Decimal256Type

Source§

type NativeBytes = [u8; 32]

Source§

fn to_be_bytes(value: Self::Native) -> Self::NativeBytes

Implementors§