pub struct EnumInfo {
pub name: &'static str,
pub variants: &'static [(u128, &'static str)],
}Expand description
Variant table for a #[derive(BitEnum)] enum.
Fields§
§name: &'static strThe enum’s type name.
variants: &'static [(u128, &'static str)](discriminant, variant name) pairs, in declaration order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnumInfo
impl RefUnwindSafe for EnumInfo
impl Send for EnumInfo
impl Sync for EnumInfo
impl Unpin for EnumInfo
impl UnsafeUnpin for EnumInfo
impl UnwindSafe for EnumInfo
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