Expand description
This crate is on its own not really usable. It is re-exported together with the required traits in the optionable crate. The relevant docs can be also found there.
This is only a separate crate as derive macros have to be a separate crate.
Derive Macrosยง
- Optionable
- Derive macro to derive the
Optionabletrait for structs/enums recursively by generating a type with all fields recursively replaced withOptionversions. All non-required fields have to implement theOptionabletrait. This trait is already implemented by this library for many primitive types, wrapper and container types.