https://github.com/tailhook/trimmer-derive
A derive implementation for `trimmer::Variable` trait
https://github.com/tailhook/trimmer-derive
Last synced: 6 months ago
JSON representation
A derive implementation for `trimmer::Variable` trait
- Host: GitHub
- URL: https://github.com/tailhook/trimmer-derive
- Owner: tailhook
- License: apache-2.0
- Created: 2017-12-17T22:18:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-18T21:28:11.000Z (about 8 years ago)
- Last Synced: 2025-03-21T10:15:34.583Z (11 months ago)
- Language: Rust
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
Trimmer Derive
==============
[Trimmer](https://crates.io/crates/trimmer/) |
[Docs](https://docs.rs/trimmer_derive/) |
[Github](https://github.com/tailhook/trimmer-derive) |
[Crate](https://crates.io/crates/trimmer_derive)
This crate allows to derive `trimmer::Variable` trait.
Examples:
```rust
// Derives `.x` and `.y` attributes
#[derive(Debug, Variable)]
struct Point {
x: u32,
y: u32,
}
// Forwards all methods to the internal type
#[derive(Debug, Variable)]
struct NewType(SomeVarType);
```
License
=======
Licensed under either of
* Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT)
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.