std::collections::stack¶
Status: experimental
LIFO stack over Veclet s = stack::push(s, v).
API details and source¶
The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.
| Item | Canonical signature or declaration | Description |
|---|---|---|
len |
fn len(xs: Stack<i64>) -> i64 |
Element count. |
peek |
fn peek(xs: Stack<i64>) -> i64 |
Top element, or 0 if empty. |
pop |
fn pop(xs: Stack<i64>) -> Stack<i64> |
Drop the top; returns the new stack. |
push |
fn push(xs: Stack<i64>, value: i64) -> Stack<i64> |
Push an i64 onto the top; returns the new stack. |