1 unstable release
0.1.0 | Dec 7, 2019 |
---|
#5 in #as-ref
9KB
189 lines
derive_asref
Gives you a variety way to derive AsRef
trait.
How to use
use derive_asref::AsRef;
#[derive(AsRef)]
struct Hoge {
#[as_ref(target = "i64")]
value: i64,
}
Dependencies
~1.5MB
~34K SLoC