history-box 0.1.1

A history box that keeps history references
Documentation
  • Coverage
  • 0%
    0 out of 7 items documented0 out of 6 items with examples
  • Size
  • Source code size: 4.61 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.31 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • victorteokw/history-box
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • victorteokw

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