derive_asref

Crates.ioderive_asref
lib.rsderive_asref
version0.1.0
sourcesrc
created_at2019-12-07 08:03:23.267788
updated_at2019-12-07 08:03:23.267788
descriptionderive AsRef in variety way.
homepage
repositoryhttps://github.com/AtsukiTak/derive_asref
max_upload_size
id187061
size8,761
Atsuki Takahashi (AtsukiTak)

documentation

README

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,
}
Commit count: 3

cargo fmt