Skip to main content

BigEndianEncode

Trait BigEndianEncode 

Source
pub trait BigEndianEncode {
    type Bytes;

    // Required method
    fn to_be_canonical(self) -> Self::Bytes;
}
Expand description

Canonical big-endian encoding for on-disk SQLite-compatible structures.

Required Associated Types§

Required Methods§

Source

fn to_be_canonical(self) -> Self::Bytes

Implementations on Foreign Types§

Source§

impl BigEndianEncode for i32

Source§

type Bytes = [u8; 4]

Source§

fn to_be_canonical(self) -> Self::Bytes

Source§

impl BigEndianEncode for u16

Source§

type Bytes = [u8; 2]

Source§

fn to_be_canonical(self) -> Self::Bytes

Source§

impl BigEndianEncode for u32

Source§

type Bytes = [u8; 4]

Source§

fn to_be_canonical(self) -> Self::Bytes

Source§

impl BigEndianEncode for u64

Source§

type Bytes = [u8; 8]

Source§

fn to_be_canonical(self) -> Self::Bytes

Implementors§