Struct kernel::common::cells::VolatileCell[][src]

#[repr(C)]
pub struct VolatileCell<T> { value: T, }

VolatileCell provides a wrapper around unsafe volatile pointer reads and writes. This is particularly useful for accessing microcontroller registers.

Fields

Methods

impl<T> VolatileCell<T>
[src]

Trait Implementations

impl<T> Clone for VolatileCell<T> where
    T: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Default for VolatileCell<T> where
    T: Default
[src]

Returns the "default value" for a type. Read more

impl<T> Copy for VolatileCell<T> where
    T: Copy
[src]

Auto Trait Implementations

impl<T> Send for VolatileCell<T> where
    T: Send

impl<T> Sync for VolatileCell<T> where
    T: Sync