#history #reference #box #keeps

history-box

A history box that keeps history references

2 releases

new 0.1.1 Nov 19, 2024
0.1.0 Nov 3, 2024

#4 in #keeps

Download history 103/week @ 2024-10-31 21/week @ 2024-11-07 222/week @ 2024-11-14

346 downloads per month
Used in 5 crates (via teo-runtime)

MIT license

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

No runtime deps