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