Returns the number of items in the stack.
Determines if the stack is empty.
Returns a reference to the element at the given index in the
stack or None
if the index is out of bounds
Returns a mutable reference to the element at the given index in the
stack or None
if the index is out of bounds
Pushes a value onto the top of the stack.
Removes the last element from the stack and returns it.
Immutably borrows from an owned value. Read more
Constructs a shared instance of this type from its raw type.
Constructs a mutable reference of this type from its raw type.
Returns a raw pointer to the wrapped value.
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
Performs the mutable indexing (container[index]
) operation. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.