[][src]Struct peripheral_register::Register

pub struct Register<T, U: Field = NoField> {
    pub value: T,
    // some fields omitted
}

Fields

value: T

Implementations

impl<T, U> Register<T, U> where
    T: Into<RegisterValue> + From<RegisterValue> + Copy + Default,
    U: Field
[src]

pub fn new(value: T) -> Self[src]

pub fn of(u: U, value: T) -> Self[src]

pub fn get(&self, u: U) -> T[src]

pub fn is_set(&self, u: U) -> bool[src]

pub fn set(&mut self, u: U, value: T)[src]

pub fn reset(&mut self, u: U)[src]

Trait Implementations

impl<T: Clone, U: Clone + Field> Clone for Register<T, U>[src]

impl<T: Copy, U: Copy + Field> Copy for Register<T, U>[src]

impl<T: Debug, U: Debug + Field> Debug for Register<T, U>[src]

impl<T, U: Field> From<T> for Register<T, U>[src]

impl<'a, T, U: Field> Into<&'a mut [T]> for Register<T, U>[src]

Auto Trait Implementations

impl<T, U> Send for Register<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for Register<T, U> where
    T: Sync,
    U: Sync

impl<T, U> Unpin for Register<T, U> where
    T: Unpin,
    U: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.