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