A simple library to track changes in a HashMap over several iterations.
This library is designed to detect if a HashMap has been updated since it was last checked or if it is unchanged. You can compare your hashmap with it's previous version to see if anything has been changed or added.
Use cases
Simple use case when you need to return bool from a comparison:
use HashMap;
use HashMapComparer;
let mut my_hashmap = new;
let comparer = new;
my_hashmap.insert;
// HashMap has new values
assert_eq!;
// Hashmap has not received new values
assert_eq!;
my_hashmap.insert;
// HashMap has new values
assert_eq!;
Use case when you need to return values that have changed as a result of a comparison:
//Example usage
use HashMap;
use HashMapComparer;
let comparer = new;
let mut my_hashmap = new;
let mut results: = vec!;
my_hashmap.insert;
my_hashmap.insert;
my_hashmap.insert;
for i in 0..5
assert_eq!;
This library does not use any third-party crates, only crates from the standard rust library :)