Enum term_transcript::test::MatchKind
source · [−]#[non_exhaustive]
pub enum MatchKind {
TextOnly,
Precise,
}
Available on crate feature
test
only.Expand description
Kind of terminal output matching.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TextOnly
Relaxed matching: compare only output text, but not coloring.
Precise
Precise matching: compare output together with colors.
Trait Implementations
sourceimpl Ord for MatchKind
impl Ord for MatchKind
sourceimpl PartialOrd<MatchKind> for MatchKind
impl PartialOrd<MatchKind> for MatchKind
sourcefn partial_cmp(&self, other: &MatchKind) -> Option<Ordering>
fn partial_cmp(&self, other: &MatchKind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for MatchKind
impl Eq for MatchKind
impl StructuralEq for MatchKind
impl StructuralPartialEq for MatchKind
Auto Trait Implementations
impl RefUnwindSafe for MatchKind
impl Send for MatchKind
impl Sync for MatchKind
impl Unpin for MatchKind
impl UnwindSafe for MatchKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more