pub struct EnumItem {
pub name: String,
pub value: i16,
}Expand description
Enum item for Enum8/Enum16 types, mapping a name to its integer value.
Fields§
§name: StringThe string name of this enum variant.
value: i16The integer value associated with this enum variant.
Trait Implementations§
impl Eq for EnumItem
impl StructuralPartialEq for EnumItem
Auto Trait Implementations§
impl Freeze for EnumItem
impl RefUnwindSafe for EnumItem
impl Send for EnumItem
impl Sync for EnumItem
impl Unpin for EnumItem
impl UnwindSafe for EnumItem
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