Struct awint_macro_internals::PText
source · pub struct PText { /* private fields */ }
Trait Implementations§
source§impl Ord for PText
impl Ord for PText
source§impl PartialEq for PText
impl PartialEq for PText
source§impl PartialOrd for PText
impl PartialOrd for PText
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Ptr for PText
impl Ptr for PText
§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.impl Copy for PText
impl Eq for PText
impl StructuralPartialEq for PText
Auto Trait Implementations§
impl RefUnwindSafe for PText
impl Send for PText
impl Sync for PText
impl Unpin for PText
impl UnwindSafe for PText
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