pub enum MatchMode {
Exact,
TrimTrailing,
Fuzzy,
}Expand description
Comparison mode for snapshot testing.
Variants§
Exact
Byte-exact string comparison.
TrimTrailing
Trim trailing whitespace on each line before comparing.
Fuzzy
Collapse all whitespace runs to single spaces and trim each line.
Trait Implementations§
impl Copy for MatchMode
impl Eq for MatchMode
impl StructuralPartialEq for MatchMode
Auto Trait Implementations§
impl Freeze for MatchMode
impl RefUnwindSafe for MatchMode
impl Send for MatchMode
impl Sync for MatchMode
impl Unpin for MatchMode
impl UnsafeUnpin for MatchMode
impl UnwindSafe for MatchMode
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