#[repr(transparent)]pub struct Id(pub NonZero<mirilla_id_t>);Expand description
An identifier managed by the module.
This is used to refer to any contextual structure held in the kernel for mirilla.
Tuple Fields§
§0: NonZero<mirilla_id_t>Methods from Deref<Target = NonZero<mirilla_id_t>>§
pub const BITS: u32 = u8::BITS
pub const MIN: NonZero<u8>
pub const MAX: NonZero<u8>
pub const BITS: u32 = u16::BITS
pub const MIN: NonZero<u16>
pub const MAX: NonZero<u16>
pub const BITS: u32 = u32::BITS
pub const MIN: NonZero<u32>
pub const MAX: NonZero<u32>
pub const BITS: u32 = u64::BITS
pub const MIN: NonZero<u64>
pub const MAX: NonZero<u64>
pub const BITS: u32 = u128::BITS
pub const MIN: NonZero<u128>
pub const MAX: NonZero<u128>
pub const BITS: u32 = usize::BITS
pub const MIN: NonZero<usize>
pub const MAX: NonZero<usize>
pub const BITS: u32 = i8::BITS
pub const MIN: NonZero<i8>
pub const MAX: NonZero<i8>
pub const BITS: u32 = i16::BITS
pub const MIN: NonZero<i16>
pub const MAX: NonZero<i16>
pub const BITS: u32 = i32::BITS
pub const MIN: NonZero<i32>
pub const MAX: NonZero<i32>
pub const BITS: u32 = i64::BITS
pub const MIN: NonZero<i64>
pub const MAX: NonZero<i64>
pub const BITS: u32 = i128::BITS
pub const MIN: NonZero<i128>
pub const MAX: NonZero<i128>
pub const BITS: u32 = isize::BITS
pub const MIN: NonZero<isize>
pub const MAX: NonZero<isize>
Trait Implementations§
impl Copy for Id
impl Eq for Id
Source§impl Ord for Id
impl Ord for Id
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Id
impl PartialOrd for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnsafeUnpin for Id
impl UnwindSafe for Id
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