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
The type that is used to store values of Self inside of a ControlledOption. This might
be Self itself, if your niche is a valid instance of the type, but which violates some
runtime constraint. But if you cannot easily create your niche as an instance of Self,
you can use some other type, you can use some other type instead. Read more
Returns the niche value for this type that should be used to represent None for a
ControlledOption. Read more
Returns whether value is the niche value for this type.
Transforms a non-niche value of this type into its Output type. When Output is Self,
this will be the identity function. 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