pub struct BestParseVariantMatch {
pub variant_name: String,
pub error: Box<ParseError>,
}Expand description
The nearest matching variant for a failed parse-time union attempt.
Fields§
§variant_name: StringName of the variant that came closest to matching.
error: Box<ParseError>The error produced by that variant.
Trait Implementations§
Source§impl Clone for BestParseVariantMatch
impl Clone for BestParseVariantMatch
Source§fn clone(&self) -> BestParseVariantMatch
fn clone(&self) -> BestParseVariantMatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BestParseVariantMatch
impl Debug for BestParseVariantMatch
Source§impl PartialEq for BestParseVariantMatch
impl PartialEq for BestParseVariantMatch
impl StructuralPartialEq for BestParseVariantMatch
Auto Trait Implementations§
impl Freeze for BestParseVariantMatch
impl RefUnwindSafe for BestParseVariantMatch
impl Send for BestParseVariantMatch
impl Sync for BestParseVariantMatch
impl Unpin for BestParseVariantMatch
impl UnsafeUnpin for BestParseVariantMatch
impl UnwindSafe for BestParseVariantMatch
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