Struct kernel::common::regs::FieldValue
[−]
[src]
pub struct FieldValue<T: IntLike, R: RegisterLongName> { mask: T, value: T, associated_register: PhantomData<R>, }
Values for the specific register fields.
Fields
mask: T
value: T
associated_register: PhantomData<R>
Methods
impl<R: RegisterLongName> FieldValue<u8, R>
[src]
impl<R: RegisterLongName> FieldValue<u16, R>
[src]
impl<R: RegisterLongName> FieldValue<u32, R>
[src]
impl<T: IntLike, R: RegisterLongName> FieldValue<T, R>
[src]
Trait Implementations
impl<T: Copy + IntLike, R: Copy + RegisterLongName> Copy for FieldValue<T, R>
[src]
impl<T: Clone + IntLike, R: Clone + RegisterLongName> Clone for FieldValue<T, R>
[src]
fn clone(&self) -> FieldValue<T, R>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<R: RegisterLongName> From<FieldValue<u8, R>> for u8
[src]
fn from(val: FieldValue<u8, R>) -> u8
[src]
Performs the conversion.
impl<R: RegisterLongName> From<FieldValue<u16, R>> for u16
[src]
fn from(val: FieldValue<u16, R>) -> u16
[src]
Performs the conversion.
impl<R: RegisterLongName> From<FieldValue<u32, R>> for u32
[src]
fn from(val: FieldValue<u32, R>) -> u32
[src]
Performs the conversion.
impl<T: IntLike, R: RegisterLongName> Add for FieldValue<T, R>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
Performs the +
operation.
impl<T: IntLike, R: RegisterLongName> AddAssign for FieldValue<T, R>
[src]
fn add_assign(&mut self, rhs: FieldValue<T, R>)
[src]
Performs the +=
operation.