#history #reference #box #keeps

history-box

A history box that keeps history references

1 unstable release

new 0.1.0 Nov 3, 2024

#2 in #keeps

Download history 105/week @ 2024-11-01

105 downloads per month

MIT license

4KB
71 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