#[repr(C)]pub struct HartMask { /* private fields */ }
Expand description
Hart mask structure in SBI function calls.
Implementations§
Source§impl HartMask
impl HartMask
Sourcepub const IGNORE_MASK: usize = 4_294_967_295usize
pub const IGNORE_MASK: usize = 4_294_967_295usize
Special value to ignore the mask
, and consider all bit
s as set.
Sourcepub const fn from_mask_base(hart_mask: usize, hart_mask_base: usize) -> Self
pub const fn from_mask_base(hart_mask: usize, hart_mask_base: usize) -> Self
Construct a HartMask from mask value and base hart id.
Sourcepub const fn ignore_mask(&self) -> usize
pub const fn ignore_mask(&self) -> usize
Gets the special value for ignoring the mask
parameter.
Sourcepub const fn into_inner(self) -> (usize, usize)
pub const fn into_inner(self) -> (usize, usize)
Returns mask
and base
parameters from the HartMask.
Trait Implementations§
impl Copy for HartMask
impl Eq for HartMask
impl StructuralPartialEq for HartMask
Auto Trait Implementations§
impl Freeze for HartMask
impl RefUnwindSafe for HartMask
impl Send for HartMask
impl Sync for HartMask
impl Unpin for HartMask
impl UnwindSafe for HartMask
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
)