cached 3.1.1

Generic cache implementations and simplified function memoization
Documentation
1
2
3
4
5
error: #[cached] cannot be applied to methods that take `self`. Set `in_impl = true` to cache the method inside its `impl` block (a `convert` block alone is not sufficient: the generated cache static cannot live at `impl` scope).
 --> tests/ui/cached_self_method.rs:4:4
  |
4 | fn my_fn(&self, k: i32) -> i32 {
  |    ^^^^^