pub struct PointerId(/* private fields */);Expand description
A unique identifier for the pointer.
PointerId(1) is reserved for the primary pointer.
Implementations§
Source§impl PointerId
impl PointerId
Sourcepub fn is_primary_pointer(self) -> bool
pub fn is_primary_pointer(self) -> bool
Return true if this is the primary PointerId.
Sourcepub fn get_inner(self) -> NonZeroU64
pub fn get_inner(self) -> NonZeroU64
Returns the inner NonZeroU64 value.
Trait Implementations§
Source§impl Ord for PointerId
impl Ord for PointerId
Source§impl PartialOrd for PointerId
impl PartialOrd for PointerId
impl Copy for PointerId
impl Eq for PointerId
impl StructuralPartialEq for PointerId
Auto Trait Implementations§
impl Freeze for PointerId
impl RefUnwindSafe for PointerId
impl Send for PointerId
impl Sync for PointerId
impl Unpin for PointerId
impl UnwindSafe for PointerId
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