#named-arguments #anonymous #named #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

Download history 2/week @ 2024-12-04 7/week @ 2024-12-11 28/week @ 2025-01-08 10/week @ 2025-01-15

69 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

~255–720KB
~17K SLoC