IdleStorage

Trait IdleStorage 

Source
pub trait IdleStorage: Default {
    const CAPACITY: u32;

    // Required methods
    fn insert(&mut self, index: usize, val: u8) -> Option<u8>;
    fn get(&self, index: usize) -> Option<u8>;
}

Required Associated Constants§

Required Methods§

Source

fn insert(&mut self, index: usize, val: u8) -> Option<u8>

Source

fn get(&self, index: usize) -> Option<u8>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IdleStorage for ()

Source§

const CAPACITY: u32 = 0u32

Source§

fn insert(&mut self, _index: usize, _val: u8) -> Option<u8>

Source§

fn get(&self, _index: usize) -> Option<u8>

Source§

impl IdleStorage for Block8<u8>

Source§

const CAPACITY: u32 = 8u32

Source§

fn insert(&mut self, index: usize, val: u8) -> Option<u8>

Source§

fn get(&self, index: usize) -> Option<u8>

Source§

impl IdleStorage for Block16<u8>

Source§

const CAPACITY: u32 = 16u32

Source§

fn insert(&mut self, index: usize, val: u8) -> Option<u8>

Source§

fn get(&self, index: usize) -> Option<u8>

Source§

impl IdleStorage for Block32<u8>

Source§

const CAPACITY: u32 = 32u32

Source§

fn insert(&mut self, index: usize, val: u8) -> Option<u8>

Source§

fn get(&self, index: usize) -> Option<u8>

Source§

impl IdleStorage for Block64<u8>

Source§

const CAPACITY: u32 = 64u32

Source§

fn insert(&mut self, index: usize, val: u8) -> Option<u8>

Source§

fn get(&self, index: usize) -> Option<u8>

Source§

impl IdleStorage for Block128<u8>

Source§

const CAPACITY: u32 = 128u32

Source§

fn insert(&mut self, index: usize, val: u8) -> Option<u8>

Source§

fn get(&self, index: usize) -> Option<u8>

Implementors§