pub enum PatternExpectation {
Match,
NoMatch,
}Expand description
Whether a string is expected to match a pattern.
Variants§
Match
Requires the string to match the pattern.
NoMatch
Requires the string not to match the pattern.
Trait Implementations§
Source§impl Clone for PatternExpectation
impl Clone for PatternExpectation
Source§fn clone(&self) -> PatternExpectation
fn clone(&self) -> PatternExpectation
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 moreimpl Copy for PatternExpectation
Source§impl Debug for PatternExpectation
impl Debug for PatternExpectation
impl Eq for PatternExpectation
Source§impl PartialEq for PatternExpectation
impl PartialEq for PatternExpectation
impl StructuralPartialEq for PatternExpectation
Auto Trait Implementations§
impl Freeze for PatternExpectation
impl RefUnwindSafe for PatternExpectation
impl Send for PatternExpectation
impl Sync for PatternExpectation
impl Unpin for PatternExpectation
impl UnsafeUnpin for PatternExpectation
impl UnwindSafe for PatternExpectation
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