Skip to main content

Module enums

Module enums 

Source
Expand description

Traits and types used to power enum-like operations via reflection.

Structs§

DynamicEnum
A dynamic representation of an enum.
EnumInfo
A container for compile-time enum info, used by TypeInfo.
StructVariantInfo
Type info for struct variants.
TupleVariantInfo
Type info for tuple variants.
UnitVariantInfo
Type info for unit variants.
VariantFieldIter
An iterator over the fields in the current enum variant.

Enums§

DynamicVariant
A dynamic representation of an enum variant.
VariantField
A field in the current enum variant.
VariantInfo
A container for compile-time enum variant info.
VariantInfoError
A VariantInfo-specific error.
VariantType
Describes the form of an enum variant.

Traits§

Enum
A trait used to power enum-like operations via reflection.

Functions§

enum_debug
The default debug formatter for Enum types.
enum_hash
Returns the u64 hash of the given enum.
enum_partial_cmp
Compares two Enum values (by variant) and returns their ordering.
enum_partial_eq
Compares an Enum with a PartialReflect value.