pub enum PatternKind {
Literal,
Glob,
Regex,
}Expand description
How a raw pattern string was interpreted by classify.
Variants§
Literal
No metacharacters: matched verbatim (regex-escaped).
Glob
Glob metacharacters only: converted to an equivalent regex.
Regex
Explicit, valid regex: used as written.
Trait Implementations§
Source§impl Clone for PatternKind
impl Clone for PatternKind
Source§fn clone(&self) -> PatternKind
fn clone(&self) -> PatternKind
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 PatternKind
Source§impl Debug for PatternKind
impl Debug for PatternKind
impl Eq for PatternKind
Source§impl PartialEq for PatternKind
impl PartialEq for PatternKind
Source§fn eq(&self, other: &PatternKind) -> bool
fn eq(&self, other: &PatternKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatternKind
Auto Trait Implementations§
impl Freeze for PatternKind
impl RefUnwindSafe for PatternKind
impl Send for PatternKind
impl Sync for PatternKind
impl Unpin for PatternKind
impl UnsafeUnpin for PatternKind
impl UnwindSafe for PatternKind
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