#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

Download history 19/week @ 2024-01-14 10/week @ 2024-01-21 2/week @ 2024-02-18 10/week @ 2024-02-25 1/week @ 2024-03-03 10/week @ 2024-03-10 1/week @ 2024-03-17 39/week @ 2024-03-24 15/week @ 2024-03-31

54 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

~320–770KB
~18K SLoC