Slot

Trait Slot 

Source
pub trait Slot: Copy + Default {
    // Required methods
    fn get(&self) -> *const u8;
    fn size() -> usize;
}

Required Methods§

Source

fn get(&self) -> *const u8

Source

fn size() -> usize

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.

Implementors§

Source§

impl<const N: usize> Slot for SlotWithAlign1<N>

Source§

impl<const N: usize> Slot for SlotWithAlign2<N>

Source§

impl<const N: usize> Slot for SlotWithAlign4<N>

Source§

impl<const N: usize> Slot for SlotWithAlign8<N>

Source§

impl<const N: usize> Slot for SlotWithAlign16<N>

Source§

impl<const N: usize> Slot for SlotWithAlign32<N>

Source§

impl<const N: usize> Slot for SlotWithAlign64<N>

Source§

impl<const N: usize> Slot for SlotWithAlign128<N>

Source§

impl<const N: usize> Slot for SlotWithAlign256<N>

Source§

impl<const N: usize> Slot for SlotWithAlign512<N>