Struct awint_macro_internals::PVal
source · pub struct PVal { /* private fields */ }
Trait Implementations§
source§impl Ord for PVal
impl Ord for PVal
source§impl PartialEq for PVal
impl PartialEq for PVal
source§impl PartialOrd for PVal
impl PartialOrd for PVal
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 PVal
impl Ptr for PVal
§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 PVal
impl Eq for PVal
impl StructuralPartialEq for PVal
Auto Trait Implementations§
impl RefUnwindSafe for PVal
impl Send for PVal
impl Sync for PVal
impl Unpin for PVal
impl UnwindSafe for PVal
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