Skip to main content

SmallFixed

Trait SmallFixed 

Source
pub trait SmallFixed {
    // Required methods
    fn size() -> usize;
    fn load(bytes: &[u8]) -> Self;
    fn save(&self, bytes: &mut [u8]);
}
Expand description

Value for Hash Map lookup.

Required Methods§

Source

fn size() -> usize

Source

fn load(bytes: &[u8]) -> Self

Source

fn save(&self, bytes: &mut [u8])

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 SmallFixed for i64

Source§

fn size() -> usize

Source§

fn load(bytes: &[u8]) -> Self

Source§

fn save(&self, bytes: &mut [u8])

Implementors§