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
Source§fn clone(&self) -> FormatVariant
fn clone(&self) -> FormatVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for FormatVariant
impl Forget for FormatVariant
impl Move 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