#[repr(transparent)]pub struct TypeModifierBits(pub u16);
Tuple Fields§
§0: u16
Implementations§
Source§impl TypeModifierBits
impl TypeModifierBits
pub fn is_const(&self) -> bool
pub fn is_volatile(&self) -> bool
pub fn is_unaligned(&self) -> bool
pub fn reserved(&self) -> u16
pub fn set_is_const(&mut self, value: bool)
pub fn set_is_volatile(&mut self, value: bool)
pub fn set_is_unaligned(&mut self, value: bool)
pub fn set_reserved(&mut self, value: u16)
Trait Implementations§
Source§impl<T> BitRange<T> for TypeModifierBits
impl<T> BitRange<T> for TypeModifierBits
Source§impl<T> BitRangeMut<T> for TypeModifierBitswhere
u16: BitRangeMut<T>,
impl<T> BitRangeMut<T> for TypeModifierBitswhere
u16: BitRangeMut<T>,
Source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.
Source§impl Clone for TypeModifierBits
impl Clone for TypeModifierBits
Source§fn clone(&self) -> TypeModifierBits
fn clone(&self) -> TypeModifierBits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TypeModifierBits
impl RefUnwindSafe for TypeModifierBits
impl Send for TypeModifierBits
impl Sync for TypeModifierBits
impl Unpin for TypeModifierBits
impl UnwindSafe for TypeModifierBits
Blanket Implementations§
Source§impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more