#[repr(transparent)]pub struct Hartinfo(pub u32);
Expand description
Hart Information
Tuple Fields§
§0: u32
Implementations§
Source§impl Hartinfo
impl Hartinfo
Sourcepub fn set_dataaddr(&mut self, val: u16)
pub fn set_dataaddr(&mut self, val: u16)
Data Address
Sourcepub fn set_datasize(&mut self, val: u8)
pub fn set_datasize(&mut self, val: u8)
Data Size
Sourcepub const fn dataaccess(&self) -> bool
pub const fn dataaccess(&self) -> bool
Data Access
Sourcepub fn set_dataaccess(&mut self, val: bool)
pub fn set_dataaccess(&mut self, val: bool)
Data Access
Sourcepub fn set_nscratch(&mut self, val: u8)
pub fn set_nscratch(&mut self, val: u8)
Number of dscratch registers
Trait Implementations§
impl Copy for Hartinfo
impl Eq for Hartinfo
impl StructuralPartialEq for Hartinfo
Auto Trait Implementations§
impl Freeze for Hartinfo
impl RefUnwindSafe for Hartinfo
impl Send for Hartinfo
impl Sync for Hartinfo
impl Unpin for Hartinfo
impl UnwindSafe for Hartinfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)