2 releases
new 0.1.1 | Nov 19, 2024 |
---|---|
0.1.0 | Nov 3, 2024 |
#4 in #keeps
346 downloads per month
Used in 5 crates
(via teo-runtime)
5KB
97 lines
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