Crates.io | history-box |
lib.rs | history-box |
version | 0.1.1 |
source | src |
created_at | 2024-11-03 08:12:59.897406 |
updated_at | 2024-11-19 02:12:38.748391 |
description | A history box that keeps history references |
homepage | |
repository | https://github.com/victorteokw/history-box |
max_upload_size | |
id | 1433466 |
size | 4,929 |
A history box that keeps history references
Add these lines to Cargo.toml
under the [dependencies]
section:
history-box = "0.1"
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))
MIT License