history-box

Crates.iohistory-box
lib.rshistory-box
version0.1.1
sourcesrc
created_at2024-11-03 08:12:59.897406
updated_at2024-11-19 02:12:38.748391
descriptionA history box that keeps history references
homepage
repositoryhttps://github.com/victorteokw/history-box
max_upload_size
id1433466
size4,929
Victor Teo (victorteokw)

documentation

README

History Box

A history box that keeps history references

Installation

Add these lines to Cargo.toml under the [dependencies] section:

history-box = "0.1"

Usage

let history_box = HistoryBox::new();
history_box.get(); // None
history_box.set(1);
history_box.get(); // Some(&1))
history_box.set(2);
history_box.get(); // Some(&2))
history_box.set(3);
history_box.get(); // Some(&3))

License

MIT License

Commit count: 2

cargo fmt