pub struct EnumShape {
pub name: &'static str,
pub doc: &'static str,
pub tag: Option<&'static str>,
pub variants: Vec<Variant>,
}Fields§
§name: &'static str§doc: &'static str§tag: Option<&'static str>The key naming the variant ("type"), None for an enum of names.
variants: Vec<Variant>Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnumShape
impl RefUnwindSafe for EnumShape
impl Send for EnumShape
impl Sync for EnumShape
impl Unpin for EnumShape
impl UnsafeUnpin for EnumShape
impl UnwindSafe for EnumShape
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