StructMeta
Parse Rust's attribute arguments by defining a struct.
Documentation
See #[derive(StructMeta)]
documentation for details.
Install
Add this to your Cargo.toml:
[]
= "0.2.0"
= "2.0.4"
Example
use StructMeta;
use ;
let attr: Attribute = parse_quote!;
let attr: MyAttr = attr.parse_args.unwrap;
println!;
This code outputs:
x = 10, y = abc
License
This project is dual licensed under Apache-2.0/MIT. See the two LICENSE-* files for details.
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.