7 releases (breaking)
0.7.0 | Oct 16, 2020 |
---|---|
0.6.0 | Sep 23, 2020 |
0.5.0 | Sep 22, 2020 |
0.4.0 | Sep 22, 2020 |
0.1.0 | Sep 9, 2020 |
#42 in #ref
24 downloads per month
Used in ref_clone
9KB
218 lines
This crate uses a macro to generate necessary impls for easy use of the Ref
type within the ref_clone
package.
To use this, prepend a #[RefAccessors]
to a struct or enum definition.
The macro automatically generates a wrapper type for the struct or enum which wraps all values in a Ref
.
This wrapper type may be accessed using the to_wrapped
method on the trait RefAccessors
.
Dependencies
~1.5MB
~37K SLoC