cached 1.1.0

Generic cache implementations and simplified function memoization
Documentation
1
2
3
4
5
error: `result_fallback` requires `result = true` because it falls back from `Err` to a cached `Ok` value
 --> tests/ui/result_fallback_without_result.rs:4:4
  |
4 | fn my_fn(k: i32) -> i32 {
  |    ^^^^^