AtomicCellMember

Trait AtomicCellMember 

Source
pub trait AtomicCellMember: Copy {
    // Required methods
    fn to_num(self) -> usize;
    unsafe fn from_num(value: usize) -> Self;
}

Required Methods§

Source

fn to_num(self) -> usize

Source

unsafe fn from_num(value: usize) -> Self

§Safety

Be careful about the range of the value.

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 AtomicCellMember for Option<Error>

Source§

fn to_num(self) -> usize

Source§

unsafe fn from_num(val: usize) -> Self

Source§

impl<const NOM: u32, const DENOM: u32> AtomicCellMember for Rate<u32, NOM, DENOM>

Source§

fn to_num(self) -> usize

Source§

unsafe fn from_num(value: usize) -> Self

Implementors§

Source§

impl<const NOM: u32, const DENOM: u32> AtomicCellMember for Duration<u32, NOM, DENOM>