Skip to main content

WideInt

Trait WideInt 

Source
pub trait WideInt:
    Copy
    + Default
    + ToValue {
    const WIDTH: usize;
    const VALUE_TYPE: ValueType;

    // Required methods
    fn to_ordered(self, row: &mut [u8]);
    fn from_ordered(row: &[u8]) -> Self;
}

Required Associated Constants§

Required Methods§

Source

fn to_ordered(self, row: &mut [u8])

Source

fn from_ordered(row: &[u8]) -> Self

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 WideInt for i128

Source§

const WIDTH: usize = 16

Source§

const VALUE_TYPE: ValueType = ValueType::Int16

Source§

fn to_ordered(self, row: &mut [u8])

Source§

fn from_ordered(row: &[u8]) -> Self

Source§

impl WideInt for u128

Source§

const WIDTH: usize = 16

Source§

const VALUE_TYPE: ValueType = ValueType::Uint16

Source§

fn to_ordered(self, row: &mut [u8])

Source§

fn from_ordered(row: &[u8]) -> Self

Implementors§