pub struct EnumType {
pub name: String,
pub variants: BTreeMap<String, WkType>,
}Expand description
Describes an enumerated type.
Fields§
§name: StringThe name of the enum type.
variants: BTreeMap<String, WkType>The list of variants: keys are variant names, each value is the type of the associated value of the variant.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnumType
impl !RefUnwindSafe for EnumType
impl !Send for EnumType
impl !Sync for EnumType
impl Unpin for EnumType
impl !UnwindSafe for EnumType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more