[][src]Struct kernel::common::registers::WriteOnly

#[repr(transparent)]
pub struct WriteOnly<T, R = ()> where
    R: RegisterLongName,
    T: IntLike
{ value: T, associated_register: PhantomData<R>, }

Write-only registers.

Fields

value: Tassociated_register: PhantomData<R>

Methods

impl<T, R> WriteOnly<T, R> where
    R: RegisterLongName,
    T: IntLike
[src]

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

pub fn write(&self, field: FieldValue<T, R>)[src]

Auto Trait Implementations

impl<T, R> Unpin for WriteOnly<T, R> where
    R: Unpin,
    T: Unpin

impl<T, R> Send for WriteOnly<T, R> where
    R: Send,
    T: Send

impl<T, R> Sync for WriteOnly<T, R> where
    R: Sync,
    T: Sync

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]