pub struct ObjID(/* private fields */);
Expand description
An object ID.
Implementations§
source§impl ObjID
impl ObjID
sourcepub const NR_PARTS: usize = 2usize
pub const NR_PARTS: usize = 2usize
The number of u64 components that make up an object ID, if split.
sourcepub const fn from_parts(parts: [u64; 2]) -> Self
pub const fn from_parts(parts: [u64; 2]) -> Self
Build an object ID from parts, useful for syscalls.
sourcepub const fn parts(&self) -> [u64; 2]
pub const fn parts(&self) -> [u64; 2]
Split the object ID into parts, useful for packing into registers for syscalls.
pub const fn split(&self) -> (u64, u64)
👎Deprecated
pub const fn new_from_parts(hi: u64, lo: u64) -> Self
👎Deprecated
Trait Implementations§
source§impl Ord for ObjID
impl Ord for ObjID
source§impl PartialOrd for ObjID
impl PartialOrd for ObjID
impl Copy for ObjID
impl Eq for ObjID
impl StructuralPartialEq for ObjID
Auto Trait Implementations§
impl Freeze for ObjID
impl RefUnwindSafe for ObjID
impl Send for ObjID
impl Sync for ObjID
impl Unpin for ObjID
impl UnwindSafe for ObjID
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
)