[][src]Struct ral::R

pub struct R<ValueType, RegisterType> where
    ValueType: Copy + Not<Output = ValueType> + BitAnd<Output = ValueType> + BitOr<Output = ValueType>,
    RegisterType: Register<RegisterType = RegisterType, ValueType = ValueType>, 
{ /* fields omitted */ }

Methods

impl<ValueType, RegisterType> R<ValueType, RegisterType> where
    ValueType: Copy + Not<Output = ValueType> + BitAnd<Output = ValueType> + BitOr<Output = ValueType>,
    RegisterType: Register<RegisterType = RegisterType, ValueType = ValueType>, 
[src]

pub fn new(register: *mut VolatileCell<ValueType>) -> Option<Self>[src]

pub fn get_bits(&self) -> ValueType[src]

pub fn set_bits(&mut self, bits: ValueType)[src]

pub fn read(&mut self)[src]

pub fn write(&mut self)[src]

Trait Implementations

impl<'_, ValueType, RegisterType> Into<*mut VolatileCell<ValueType>> for &'_ mut R<ValueType, RegisterType> where
    ValueType: Copy + Not<Output = ValueType> + BitAnd<Output = ValueType> + BitOr<Output = ValueType>,
    RegisterType: Register<RegisterType = RegisterType, ValueType = ValueType>, 
[src]

Auto Trait Implementations

impl<ValueType, RegisterType> Unpin for R<ValueType, RegisterType> where
    RegisterType: Unpin,
    ValueType: Unpin

impl<ValueType, RegisterType> !Send for R<ValueType, RegisterType>

impl<ValueType, RegisterType> !Sync for R<ValueType, RegisterType>

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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