Expand description
Concise, declarative trait implementation macros.
§#[no_std]
Where possible, these macros emit #[no_std]-compatible code.
Macros§
- Implements
Displayfor structs by forwarding to one of its field. - Implements
Errorfor structs and forwards thesourceimplementation to one of its fields. - Implement
AsMutfor a struct. - Implement
AsReffor a struct. - Implement
Dereffor a struct. - Implement
DerefMutfor a struct. - Implements
Displayfor structs using aformat!-like string constructor. - Implements
Displayfor enums using a static string or format args for each variant. - Implements
Errorfor enums. - Implement
Fromfor a struct. - Implement
Fromfor a primitive. - Implement
Intofor a struct.