pub struct PBind { /* private fields */ }
Trait Implementations§
Source§impl Ord for PBind
impl Ord for PBind
Source§impl PartialOrd for PBind
impl PartialOrd for PBind
Source§impl Ptr for PBind
impl Ptr for PBind
Source§type Gen = ()
type Gen = ()
The recommended general purpose type for this is
NonZeroU64
if
generation tracking is wanted, otherwise ()
.Source§fn invalid() -> Self
fn invalid() -> Self
Returns a new
Ptr
with a generation value PtrGen::one()
. Because the
arena starts with generation 2, this is guaranteed invalid when
generation counters are used. The raw index is also set to Inx::max()
which should also cause failures with the generationless case, but be
aware this can be reached practically with small Inx
types.Source§fn inx(self) -> Self::Inx
fn inx(self) -> Self::Inx
Returns a raw
Inx
. This can be useful when getting a unique id for
every entry. Do not rely on this if the Ptr
is invalidated after
get_raw
is used.Source§fn generation(self) -> Self::Gen
fn generation(self) -> Self::Gen
Returns the generation of this
Ptr
.impl Copy for PBind
impl Eq for PBind
impl StructuralPartialEq for PBind
Auto Trait Implementations§
impl Freeze for PBind
impl RefUnwindSafe for PBind
impl Send for PBind
impl Sync for PBind
impl Unpin for PBind
impl UnwindSafe for PBind
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