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§fn eq(&self, other: &SearchMode) -> bool
fn eq(&self, other: &SearchMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SearchMode
impl PartialOrd for SearchMode
source§fn partial_cmp(&self, other: &SearchMode) -> Option<Ordering>
fn partial_cmp(&self, other: &SearchMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SearchMode
impl Eq for SearchMode
impl StructuralEq for SearchMode
impl StructuralPartialEq for SearchMode
Auto Trait Implementations§
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