[][src]Struct bounded_registers::ReadOnlyCopy

pub struct ReadOnlyCopy<W, R>(pub W, pub PhantomData<R>);

Methods

impl<W, R> ReadOnlyCopy<W, R> where
    W: Copy + Clone + PartialOrd + BitAnd<W, Output = W> + Shr<W, Output = W> + Default
[src]

pub fn get_field<M: Unsigned, O: Unsigned, U: Unsigned>(
    &self,
    f: Field<W, M, O, U, R>
) -> Option<Field<W, M, O, U, R>> where
    U: IsGreater<U0, Output = True> + ReifyTo<W>,
    M: ReifyTo<W>,
    O: ReifyTo<W>,
    U0: ReifyTo<W>, 
[src]

pub fn read(&self) -> W[src]

pub fn extract(&self) -> Self[src]

pub fn is_set<M: Unsigned, O: Unsigned, U: Unsigned>(
    &self,
    _: Field<W, M, O, U, R>
) -> bool where
    U: IsGreater<U0, Output = True>,
    U: ReifyTo<W>,
    M: ReifyTo<W>,
    O: ReifyTo<W>, 
[src]

pub fn matches_any<V: Positioned<Width = W>>(&self, val: V) -> bool[src]

pub fn matches_all<V: Positioned<Width = W>>(&self, val: V) -> bool[src]

matches_all returns whether or not all of the given fields match those fields values inside the register.

Auto Trait Implementations

impl<W, R> Unpin for ReadOnlyCopy<W, R> where
    R: Unpin,
    W: Unpin

impl<W, R> Send for ReadOnlyCopy<W, R> where
    R: Send,
    W: Send

impl<W, R> Sync for ReadOnlyCopy<W, R> where
    R: Sync,
    W: Sync

Blanket Implementations

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> From<T> for 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]

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

type Output = T

Should always be Self