pub enum MatchResult {
Matched {
name: String,
},
Failed {
name: String,
reason: String,
},
}
Expand description
The return type of any Machter
Variants§
Matched
Indicates that the Matcher
matched the value under inspection.
Failed
Indicates that the Matcher
failed to match the value under inspection.
Trait Implementations§
Source§impl<'a> From<&'a MatchResult> for bool
impl<'a> From<&'a MatchResult> for bool
Source§fn from(result: &'a MatchResult) -> bool
fn from(result: &'a MatchResult) -> bool
Converts to this type from the input type.
Source§impl From<MatchResult> for bool
impl From<MatchResult> for bool
Source§fn from(result: MatchResult) -> bool
fn from(result: MatchResult) -> bool
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MatchResult
impl RefUnwindSafe for MatchResult
impl Send for MatchResult
impl Sync for MatchResult
impl Unpin for MatchResult
impl UnwindSafe for MatchResult
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