pub enum FormatMatch {
Ok(Option<Captured>),
Fail(String),
Refused(String),
}Expand description
The outcome of matching a line against a format.
Variants§
Ok(Option<Captured>)
The line conforms; its key, if the format captures one.
Fail(String)
The line does not have the shape, with the reason.
Refused(String)
The line has the shape and matches a ban, with the reason.
Trait Implementations§
Source§impl Clone for FormatMatch
impl Clone for FormatMatch
Source§impl Debug for FormatMatch
impl Debug for FormatMatch
impl Eq for FormatMatch
Source§impl PartialEq for FormatMatch
impl PartialEq for FormatMatch
impl StructuralPartialEq for FormatMatch
Auto Trait Implementations§
impl Freeze for FormatMatch
impl RefUnwindSafe for FormatMatch
impl Send for FormatMatch
impl Sync for FormatMatch
impl Unpin for FormatMatch
impl UnsafeUnpin for FormatMatch
impl UnwindSafe for FormatMatch
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