#named-arguments #named #anonymous #arguments #struct #lens

macro structx_derive

Macros for anonymous struct and named arguments

5 releases

0.1.4 May 19, 2023
0.1.3 Apr 13, 2021
0.1.2 Apr 8, 2021
0.1.1 Mar 17, 2021
0.1.0 Mar 16, 2021

#15 in #lens

24 downloads per month
Used in structx

MIT/Apache

9KB
173 lines

Overview

This crate provides proc macros for simulating anonymous struct and named arguments in Rust:

  • structx!{} for denoting values of anonymous structs.

  • Structx!{} for denoting types of anonymous structs.

  • #[named_args] for denoting functions with named arguments.

  • args!{} for denoting named arguments.

See crate structx's README.md for more.

License

Under Apache License 2.0 or MIT License, at your will.

Dependencies

~295–740KB
~18K SLoC