Structs§
- Enum
Conversion Error - Custom errors for this crate. Keeps a record of the enum and requested type that produced the error
Traits§
- GetVariant
- This is a helper trait for implementing the
TryTo
andstd::convert::TryFrom
traits on enums. Is uses marker structs to uniquely identify a type in the enum. This avoids relying onstd::any::TypeId
which is limited to types that are'static
. - TryTo
- Not all enums can have the
std::convert::TryFrom
trait derived on them because of rules around implementing foreign traits on foreign types.