Skip to main content

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".

Implementations on Foreign Types§

Source§

impl IdleStorage for ()

Source§

const CAPACITY: u32 = 0

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 = Block8<u8>::CAPACITY

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 = Block16<u8>::CAPACITY

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 = Block32<u8>::CAPACITY

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 = Block64<u8>::CAPACITY

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 = Block128<u8>::CAPACITY

Source§

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

Source§

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

Implementors§