trimmer_derive 0.1.0

A derive macro that allows to expose rust structures to trimmer template.
Documentation

Trimmer Derive

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);

License

Licensed under either of

at your option.

Contribution

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.