LoadStore

Trait LoadStore 

Source
pub trait LoadStore<T> {
    // Required methods
    fn load(&self) -> T;
    fn store(&self, value: T);
}
Expand description

A trait for accessing a value

E.g. from an AtomicCell

Required Methods§

Source

fn load(&self) -> T

Read the value

Source

fn store(&self, value: T)

Store a new value to the

Implementors§