struct_cache_field 0.0.2

Proc macro for caching method to struct field
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error: generics differ, which must coincide as string:
           in impl cached methods: < T > where T : ToString + From < String > ,
           in struct definition:   < S > where S : ToString + From < String > ,
  --> tests/ui/fail_generics_params_differ.rs:13:12
   |
13 | struct Hoge<S>
   |            ^^^

error[E0609]: no field `__cache_fields__` on type `&Hoge<T>`
 --> tests/ui/fail_generics_params_differ.rs:1:1
  |
1 | #[struct_cache_field::impl_cached_method]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown field
  |
  = note: this error originates in the attribute macro `struct_cache_field::impl_cached_method` (in Nightly builds, run with -Z macro-backtrace for more info)