Struct rumio::Value [−][src]
A value that can be applied to any register using
the modify
method.
This is also used to modify mulitple bitfields in one write operation.
Implementations
impl Value<u8>
[src]
impl Value<u16>
[src]
impl Value<u32>
[src]
impl Value<u64>
[src]
impl Value<usize>
[src]
pub const fn new(mask: usize, bits: usize) -> Self
[src]
Create a new Value
with the given mask and bits.
impl<I: Int> Value<I>
[src]
pub fn modify(self, val: I) -> I
[src]
Modify all bits that are specified by this Value
in
the given value and return the modified version.
Trait Implementations
impl BitOr<Flags> for Value<u64>
[src]
type Output = Value<u64>
The resulting type after applying the |
operator.
fn bitor(self, rhs: Flags) -> Self::Output
[src]
impl BitOr<Flags> for Value<u16>
[src]
type Output = Value<u16>
The resulting type after applying the |
operator.
fn bitor(self, rhs: Flags) -> Self::Output
[src]
impl BitOr<Mode> for Value<u64>
[src]
type Output = Value<u64>
The resulting type after applying the |
operator.
fn bitor(self, rhs: Mode) -> Self::Output
[src]
impl BitOr<Mode> for Value<u16>
[src]
type Output = Value<u16>
The resulting type after applying the |
operator.
fn bitor(self, rhs: Mode) -> Self::Output
[src]
impl<I: Int> BitOr<Value<I>> for Value<I>
[src]
type Output = Value<I>
The resulting type after applying the |
operator.
fn bitor(self, rhs: Value<I>) -> Self::Output
[src]
impl BitOr<Value<u16>> for Mode
[src]
type Output = Value<u16>
The resulting type after applying the |
operator.
fn bitor(self, rhs: Value<u16>) -> Self::Output
[src]
impl BitOr<Value<u16>> for Flags
[src]
type Output = Value<u16>
The resulting type after applying the |
operator.
fn bitor(self, rhs: Value<u16>) -> Self::Output
[src]
impl BitOr<Value<u64>> for Mode
[src]
type Output = Value<u64>
The resulting type after applying the |
operator.
fn bitor(self, rhs: Value<u64>) -> Self::Output
[src]
impl BitOr<Value<u64>> for Flags
[src]
type Output = Value<u64>
The resulting type after applying the |
operator.
fn bitor(self, rhs: Value<u64>) -> Self::Output
[src]
impl<I: Clone> Clone for Value<I>
[src]
fn clone(&self) -> Value<I>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I: Copy> Copy for Value<I>
[src]
impl<I: Debug> Debug for Value<I>
[src]
impl From<Flags> for Value<u64>
[src]
impl From<Flags> for Value<u16>
[src]
impl From<Mode> for Value<u64>
[src]
impl From<Mode> for Value<u16>
[src]
Auto Trait Implementations
impl<I> Send for Value<I> where
I: Send,
[src]
I: Send,
impl<I> Sync for Value<I> where
I: Sync,
[src]
I: Sync,
impl<I> Unpin for Value<I> where
I: Unpin,
[src]
I: 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,
pub fn borrow_mut(&mut self) -> &mut 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.
pub 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>,