[−][src]Struct bounded_registers::ReadOnlyCopy
Methods
impl<W, R> ReadOnlyCopy<W, R> where
W: Copy + Clone + PartialOrd + BitAnd<W, Output = W> + Shr<W, Output = W> + Default,
[src]
W: Copy + Clone + PartialOrd + BitAnd<W, Output = W> + Shr<W, Output = W> + Default,
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]
&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>,
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]
&self,
_: Field<W, M, O, U, R>
) -> bool where
U: IsGreater<U0, Output = True>,
U: ReifyTo<W>,
M: ReifyTo<W>,
O: ReifyTo<W>,
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,
R: Unpin,
W: Unpin,
impl<W, R> Send for ReadOnlyCopy<W, R> where
R: Send,
W: Send,
R: Send,
W: Send,
impl<W, R> Sync for ReadOnlyCopy<W, R> where
R: Sync,
W: Sync,
R: Sync,
W: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self