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§fn clone(&self) -> FormatMatch
fn clone(&self) -> FormatMatch
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 moreSource§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 Forget for FormatMatch
impl Freeze for FormatMatch
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.