#[non_exhaustive]pub struct Miss {
pub input: String,
pub expected: String,
pub got: Option<String>,
}Expand description
One missed case: expected label vs what parsed out (None = output did not
resolve to exactly one known label).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.input: StringCopied from the case so a failing run is diagnosable without the golden set.
expected: StringThe canonical label the case declared as correct.
got: Option<String>What the output resolved to, or None when it matched no single known label.
Trait Implementations§
impl StructuralPartialEq for Miss
Auto Trait Implementations§
impl Freeze for Miss
impl RefUnwindSafe for Miss
impl Send for Miss
impl Sync for Miss
impl Unpin for Miss
impl UnsafeUnpin for Miss
impl UnwindSafe for Miss
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