Struct stack_graphs::arena::Handle [−][src]
#[repr(transparent)]pub struct Handle<T> { /* fields omitted */ }
Expand description
A handle to an instance of type T
that was allocated from an Arena
.
Safety
Because of the type parameter T
, the compiler can ensure that you don’t use a handle for one
type to index into an arena of another type. However, if you have multiple arenas for the
same type, we do not do anything to ensure that you only use a handle with the corresponding
arena.
Implementations
Trait Implementations
type Output = PartialPath
type Output = PartialPath
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Handle<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Handle<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more