| Crates.io | derive_asref |
| lib.rs | derive_asref |
| version | 0.1.0 |
| created_at | 2019-12-07 08:03:23.267788+00 |
| updated_at | 2019-12-07 08:03:23.267788+00 |
| description | derive AsRef in variety way. |
| homepage | |
| repository | https://github.com/AtsukiTak/derive_asref |
| max_upload_size | |
| id | 187061 |
| size | 8,761 |
Gives you a variety way to derive AsRef trait.
use derive_asref::AsRef;
#[derive(AsRef)]
struct Hoge {
#[as_ref(target = "i64")]
value: i64,
}