Skip to main content

LittleEndianEncode

Trait LittleEndianEncode 

Source
pub trait LittleEndianEncode {
    type Bytes;

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

Canonical little-endian encoding for FrankenSQLite-native ECS structures.

Required Associated Types§

Required Methods§

Source

fn to_le_canonical(self) -> Self::Bytes

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl LittleEndianEncode for i32

Source§

type Bytes = [u8; 4]

Source§

fn to_le_canonical(self) -> Self::Bytes

Source§

impl LittleEndianEncode for u16

Source§

type Bytes = [u8; 2]

Source§

fn to_le_canonical(self) -> Self::Bytes

Source§

impl LittleEndianEncode for u32

Source§

type Bytes = [u8; 4]

Source§

fn to_le_canonical(self) -> Self::Bytes

Source§

impl LittleEndianEncode for u64

Source§

type Bytes = [u8; 8]

Source§

fn to_le_canonical(self) -> Self::Bytes

Implementors§