Struct volatile_cell::VolatileCell
[−]
[src]
#[repr(C)]pub struct VolatileCell<T> { /* fields omitted */ }
This structure is used to represent a hardware register. It is mostly used by the ioreg family of macros.
Methods
impl<T> VolatileCell<T>
[src]
fn new(value: T) -> VolatileCell<T>
Create a cell with initial value.
fn get(&self) -> T
Get register value.
fn set(&self, value: T)
Set register value.
Trait Implementations
impl<T: Copy> Copy for VolatileCell<T>
[src]
impl<T: Clone> Clone for VolatileCell<T>
[src]
fn clone(&self) -> VolatileCell<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more