pub enum PathspecMagic {
Top,
Literal,
Glob,
Icase,
Exclude,
}Expand description
Common pathspec magic labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PathspecMagic
impl Clone for PathspecMagic
Source§fn clone(&self) -> PathspecMagic
fn clone(&self) -> PathspecMagic
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 moreSource§impl Debug for PathspecMagic
impl Debug for PathspecMagic
Source§impl Display for PathspecMagic
impl Display for PathspecMagic
Source§impl FromStr for PathspecMagic
impl FromStr for PathspecMagic
Source§type Err = PathspecParseError
type Err = PathspecParseError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<PathspecMagic, <PathspecMagic as FromStr>::Err>
fn from_str( value: &str, ) -> Result<PathspecMagic, <PathspecMagic as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for PathspecMagic
impl Hash for PathspecMagic
Source§impl Ord for PathspecMagic
impl Ord for PathspecMagic
Source§fn cmp(&self, other: &PathspecMagic) -> Ordering
fn cmp(&self, other: &PathspecMagic) -> Ordering
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
Source§impl PartialEq for PathspecMagic
impl PartialEq for PathspecMagic
Source§fn eq(&self, other: &PathspecMagic) -> bool
fn eq(&self, other: &PathspecMagic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PathspecMagic
impl PartialOrd for PathspecMagic
impl Copy for PathspecMagic
impl Eq for PathspecMagic
impl StructuralPartialEq for PathspecMagic
Auto Trait Implementations§
impl Freeze for PathspecMagic
impl RefUnwindSafe for PathspecMagic
impl Send for PathspecMagic
impl Sync for PathspecMagic
impl Unpin for PathspecMagic
impl UnsafeUnpin for PathspecMagic
impl UnwindSafe for PathspecMagic
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