pub struct PointerFlags(pub u32);
Tuple Fields§
§0: u32
Implementations§
Source§impl PointerFlags
impl PointerFlags
pub fn pointer_kind(&self) -> u32
pub fn mode(&self) -> u32
pub fn flat32(&self) -> bool
pub fn volatile(&self) -> bool
pub fn const(&self) -> bool
pub fn unaligned(&self) -> bool
pub fn restrict(&self) -> bool
pub fn size(&self) -> u32
pub fn ismocom(&self) -> bool
pub fn islref(&self) -> bool
pub fn isrref(&self) -> bool
pub fn unused(&self) -> u32
pub fn set_pointer_kind(&mut self, value: u32)
pub fn set_mode(&mut self, value: u32)
pub fn set_flat32(&mut self, value: bool)
pub fn set_volatile(&mut self, value: bool)
pub fn set_const(&mut self, value: bool)
pub fn set_unaligned(&mut self, value: bool)
pub fn set_restrict(&mut self, value: bool)
pub fn set_size(&mut self, value: u32)
pub fn set_ismocom(&mut self, value: bool)
pub fn set_islref(&mut self, value: bool)
pub fn set_isrref(&mut self, value: bool)
pub fn set_unused(&mut self, value: u32)
Trait Implementations§
Source§impl<T> BitRange<T> for PointerFlags
impl<T> BitRange<T> for PointerFlags
Source§impl<T> BitRangeMut<T> for PointerFlagswhere
u32: BitRangeMut<T>,
impl<T> BitRangeMut<T> for PointerFlagswhere
u32: 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.
Auto Trait Implementations§
impl Freeze for PointerFlags
impl RefUnwindSafe for PointerFlags
impl Send for PointerFlags
impl Sync for PointerFlags
impl Unpin for PointerFlags
impl UnwindSafe for PointerFlags
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