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