#track #variables #keep

no-std modified

Keep track of changes in your variables

3 releases

0.1.2 Nov 21, 2021
0.1.1 Nov 21, 2021
0.1.0 Nov 21, 2021

#295 in No standard library

MIT license

11KB
178 lines

Modified

Keep track of changes in your variables. Can work without standard library by default!

Installation

[dependencies]
modified = "0.1.0"

Example

use modified::Modified;

let mut var = Modified::new(15);
*var = 20;
// Or
// var.set(20);
assert!(var.is_modified());

lib.rs:

Modified

Simple library which allows you to track changes in your variables.

use modified::Modified;

let mut var = Modified::new(15);
*var = 20;
// Or
// var.set(20);
assert!(var.is_modified());

No runtime deps