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
impl Copy for SearchMode
Source§impl Debug for SearchMode
impl Debug for SearchMode
Source§impl Default for SearchMode
impl Default for SearchMode
impl Eq for SearchMode
Source§impl Hash for SearchMode
impl Hash for SearchMode
Source§impl Ord for SearchMode
impl Ord for SearchMode
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SearchMode
impl PartialEq for SearchMode
Source§impl PartialOrd for SearchMode
impl PartialOrd 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 UnsafeUnpin 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