pub struct Field { /* private fields */ }Implementations§
Source§impl Field
impl Field
pub fn new(num_bits: usize, offset: usize, reset_value: u64) -> Self
pub fn last_bit(&self) -> usize
Sourcepub fn apply_write_permissions(
&self,
value: u64,
permissions: &Permission,
) -> u64
pub fn apply_write_permissions( &self, value: u64, permissions: &Permission, ) -> u64
Update as if written by instructions.
Sourcepub fn apply_set_permissions(&self, value: u64, permissions: &Permission) -> u64
pub fn apply_set_permissions(&self, value: u64, permissions: &Permission) -> u64
Update as if modified by the hardware.
Sourcepub fn apply_read_permissions(
&self,
value: u64,
permissions: &Permission,
) -> u64
pub fn apply_read_permissions( &self, value: u64, permissions: &Permission, ) -> u64
Update full register value as if this field were being read by instructions
Sourcepub fn apply_reset_value(&self, value: u64) -> u64
pub fn apply_reset_value(&self, value: u64) -> u64
Access used by hardware.
pub fn clear(&self, value: u64) -> u64
pub fn value(&self, value: u64) -> u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
Blanket Implementations§
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