pub struct FormatVariant {
pub shape: Shape,
pub example: String,
}Expand description
One shape of a variant format (grammar format-variant).
Fields§
§shape: ShapeThe shape.
example: StringOne conforming line, which a failure of this shape shows.
Trait Implementations§
Source§impl Clone for FormatVariant
impl Clone for FormatVariant
Auto Trait Implementations§
impl !Freeze for FormatVariant
impl RefUnwindSafe for FormatVariant
impl Send for FormatVariant
impl Sync for FormatVariant
impl Unpin for FormatVariant
impl UnsafeUnpin for FormatVariant
impl UnwindSafe for FormatVariant
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