pub struct Stack<T> { /* fields omitted */ }
Returns a new Stack object
Pushes a value onto the Stack
value
- The value to push onto the Stack
Pops a value off the Stack and returns it as an Option
Returns an immutable reference to the value on top of the Stack
Returns a mutable reference to the value on top of the Stack
Returns the number of items on the Stack
Returns whether the Stack is empty
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)