#[repr(transparent)]pub struct IndexedID<E, P>(pub usize, pub PhantomData<(E, P)>);Tuple Fields§
§0: usize§1: PhantomData<(E, P)>Trait Implementations§
Source§impl<E, P: IAllocPolicy> IEntityAllocID<E, P> for IndexedID<E, P>
impl<E, P: IAllocPolicy> IEntityAllocID<E, P> for IndexedID<E, P>
fn from_ptr(alloc: &EntityAlloc<E, P>, ptr: PtrID<E, P>) -> Option<Self>
fn from_index(_: &EntityAlloc<E, P>, indexed: usize) -> Option<Self>
fn try_deref(self, alloc: &EntityAlloc<E, P>) -> Option<&E>
fn try_deref_mut(self, alloc: &mut EntityAlloc<E, P>) -> Option<&mut E>
fn free(self, alloc: &mut EntityAlloc<E, P>) -> Option<E>
fn deref(self, alloc: &EntityAlloc<E, P>) -> &E
fn deref_mut(self, alloc: &mut EntityAlloc<E, P>) -> &mut E
Source§impl<E, P> Ord for IndexedID<E, P>
impl<E, P> Ord for IndexedID<E, P>
Source§impl<E, P> PartialOrd for IndexedID<E, P>
impl<E, P> PartialOrd for IndexedID<E, P>
impl<E, P> Copy for IndexedID<E, P>
impl<E, P> Eq for IndexedID<E, P>
Auto Trait Implementations§
impl<E, P> Freeze for IndexedID<E, P>
impl<E, P> RefUnwindSafe for IndexedID<E, P>where
E: RefUnwindSafe,
P: RefUnwindSafe,
impl<E, P> Send for IndexedID<E, P>
impl<E, P> Sync for IndexedID<E, P>
impl<E, P> Unpin for IndexedID<E, P>
impl<E, P> UnwindSafe for IndexedID<E, P>where
E: UnwindSafe,
P: UnwindSafe,
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