rustack

Crates.iorustack
lib.rsrustack
version0.1.0
created_at2025-02-20 13:24:19.480151+00
updated_at2025-02-20 13:24:19.480151+00
descriptionA stack implementation in Rust.
homepagehttps://github.com/guymarshall/rustack
repositoryhttps://github.com/guymarshall/rustack
max_upload_size
id1562638
size2,890
Guy Marshall (guymarshall)

documentation

https://docs.rs/rustack

README

Rustack

Rustack is a simple stack implementation in Rust.

Installation

Add this to your Cargo.toml:

[dependencies]
rustack = "0.1"

Usage

Here's a simple example of how to use rustack:

use rustack::Stack;

fn main() {
    let mut stack = Stack::new();
    stack.push(42);
    println!("{:?}", stack.pop()); // Some(42)
}

Contributing

Feel free to open issues or submit pull requests if you have any improvements or suggestions.

Commit count: 1

cargo fmt