pub enum VariantFormat {
Unit,
NewType(Box<Format>),
Tuple(Vec<Format>),
Struct(Vec<Named<Format>>),
}
Expand description
Description of a variant in an enum.
Variants§
Unit
A variant without parameters, e.g. A
in enum X { A }
NewType(Box<Format>)
A variant with a single unnamed parameter, e.g. A
in enum X { A(u16) }
Tuple(Vec<Format>)
A struct with several unnamed parameters, e.g. A
in enum X { A(u16, u32) }
Struct(Vec<Named<Format>>)
A struct with named parameters, e.g. A
in enum X { A { a: Foo } }
Trait Implementations§
Source§impl Debug for VariantFormat
impl Debug for VariantFormat
Auto Trait Implementations§
impl Freeze for VariantFormat
impl RefUnwindSafe for VariantFormat
impl Send for VariantFormat
impl Sync for VariantFormat
impl Unpin for VariantFormat
impl UnwindSafe for VariantFormat
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