| Crates.io | trimmer_derive |
| lib.rs | trimmer_derive |
| version | 0.1.0 |
| created_at | 2017-12-18 21:21:31.166184+00 |
| updated_at | 2017-12-18 21:21:31.166184+00 |
| description | A derive macro that allows to expose rust structures to trimmer template. |
| homepage | https://github.com/tailhook/trimmer-derive |
| repository | |
| max_upload_size | |
| id | 43593 |
| size | 23,776 |
Trimmer | Docs | Github | Crate
This crate allows to derive trimmer::Variable trait.
Examples:
// Derives `.x` and `.y` attributes
#[derive(Variable)]
struct Point {
x: u32,
y: u32,
}
// Forwards all methods to the internal type
#[derive(Variable)]
struct NewType(SomeVarType);
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.