fn-store 0.2.0

A dynamic persistent value store using closure type as key and storing its return value.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# FnStore

A dynamic persistent value store using closure type as key and storing its return value

## Usage

```rust
use fn_store::LocalFnStore;

let mut store = LocalFnStore::new();

let a = *store.get(|| 1);
let b = *store.get(|| 2);

assert_eq!(a, 1);
assert_eq!(b, 2);
```

# License

MIT