pub enum SearchMode {
ShellGlob,
Literal,
PathAwareGlob,
}
Expand description
Parts of magic signatures which don’t stack as they all configure the way path specs are matched.
Variants§
ShellGlob
Expand special characters like *
similar to how the shell would do it.
See PathAwareGlob
for the alternative.
Literal
Special characters in the pattern, like *
or ?
, are treated literally, effectively turning off globbing.
PathAwareGlob
A single *
will not match a /
in the pattern, but a **
will
Trait Implementations§
Source§impl Clone for SearchMode
impl Clone for SearchMode
Source§fn clone(&self) -> SearchMode
fn clone(&self) -> SearchMode
Returns a copy of the value. Read more
1.0.0 · 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 SearchMode
impl Debug for SearchMode
Source§impl Default for SearchMode
impl Default for SearchMode
Source§fn default() -> SearchMode
fn default() -> SearchMode
Returns the “default value” for a type. Read more
Source§impl Hash for SearchMode
impl Hash for SearchMode
Source§impl Ord for SearchMode
impl Ord for SearchMode
Source§fn cmp(&self, other: &SearchMode) -> Ordering
fn cmp(&self, other: &SearchMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SearchMode
impl PartialEq for SearchMode
Source§impl PartialOrd for SearchMode
impl PartialOrd for SearchMode
impl Copy for SearchMode
impl Eq for SearchMode
impl StructuralPartialEq for SearchMode
Auto Trait Implementations§
impl Freeze for SearchMode
impl RefUnwindSafe for SearchMode
impl Send for SearchMode
impl Sync for SearchMode
impl Unpin for SearchMode
impl UnwindSafe for SearchMode
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