Struct stack_graphs::arena::List [−][src]
#[repr(C)]pub struct List<T> { /* fields omitted */ }Expand description
An arena-allocated singly-linked list.
Linked lists are often a poor choice because they aren’t very cache-friendly. However, this linked list implementation should be cache-friendly, since the individual cells are allocated out of an arena.
Implementations
Pushes a new element onto the front of this list.
Removes and returns the element at the front of this list. If the list is empty, returns
None.
Trait Implementations
type Output = MaybeUninit<Self>
type Output = MaybeUninit<Self>
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
Auto Trait Implementations
impl<T> RefUnwindSafe for List<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for List<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more