pub struct Handle<T> { /* private fields */ }Expand description
A typed handle into an Arena or UniqueArena.
Handles are lightweight identifiers (u32 index) that provide type-safe access to arena-allocated values.
Implementations§
Trait Implementations§
impl<T> Copy for Handle<T>
impl<T> Eq for Handle<T>
Source§impl<T> Index<Handle<T>> for UniqueArena<T>
impl<T> Index<Handle<T>> for UniqueArena<T>
Source§impl<T> Ord for Handle<T>
impl<T> Ord for Handle<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Auto Trait Implementations§
impl<T> Freeze for Handle<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for Handle<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Send for Handle<T>where
PhantomData<T>: Send,
impl<T> Sync for Handle<T>where
PhantomData<T>: Sync,
impl<T> Unpin for Handle<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for Handle<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for Handle<T>where
PhantomData<T>: 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