#struct #anonymous #named #arguments #lens

macro structx_derive

Macros for anonymous struct and named arguments

5 releases

new 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

#8 in #lens

Download history 23/week @ 2023-01-30 25/week @ 2023-02-06 25/week @ 2023-02-13 18/week @ 2023-02-20 20/week @ 2023-02-27 6/week @ 2023-03-06 38/week @ 2023-03-13 5/week @ 2023-03-20 3/week @ 2023-03-27 8/week @ 2023-04-03 11/week @ 2023-04-10 5/week @ 2023-04-17 7/week @ 2023-04-24 5/week @ 2023-05-01 18/week @ 2023-05-08 41/week @ 2023-05-15

71 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

~0.5–0.9MB
~22K SLoC