Enum gix_pathspec::SearchMode
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)