[−][src]Struct peripheral_register::Register
Fields
value: T
Implementations
impl<T, U> Register<T, U> where
T: Into<RegisterValue> + From<RegisterValue> + Copy + Default,
U: Field,
[src]
T: Into<RegisterValue> + From<RegisterValue> + Copy + Default,
U: Field,
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]
fn clone(&self) -> Register<T, U>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
T: Send,
U: Send,
impl<T, U> Sync for Register<T, U> where
T: Sync,
U: Sync,
T: Sync,
U: Sync,
impl<T, U> Unpin for Register<T, U> where
T: Unpin,
U: Unpin,
T: Unpin,
U: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,