Crate rust_utils_macros
source ·Macros§
- A macro that implements
Default
for a type if its inherent implementation has aSelf::new() -> Self
method
Attribute Macros§
- Convenience macro that generates builder-like chainable methods from setter or adder methods in an inherent implementation, trait definition, or from fields in a
struct
- Convenience macro to quickly create an implementation of the
Config
trait. This also automatically implements theSerialize
andDeserialize
traits from the [serde
] crate (requires the featureserde_derive
) - Java style encapsulation for struct fields
Derive Macros§
- A derive macro that implements an inherent
Self::new()
method ifDefault
is already implemented (can be derived)