Trait CellGetSet

Source
pub trait CellGetSet<T> {
    // Required methods
    fn get(&'static self) -> T;
    fn set(&'static self, value: T);
}

Required Methods§

Source

fn get(&'static self) -> T

Source

fn set(&'static self, value: T)

Implementations on Foreign Types§

Source§

impl<T> CellGetSet<T> for LocalKey<Cell<T>>
where T: Copy,

Source§

fn get(&'static self) -> T

Source§

fn set(&'static self, value: T)

Implementors§