pub enum GitIgnoreScope {
Blank,
Comment,
Pattern,
Directory,
}Expand description
Ignore rule classification.
Variants§
Blank
A blank line.
Comment
A comment line.
Pattern
A file or path pattern.
Directory
A directory-only pattern.
Implementations§
Trait Implementations§
Source§impl Clone for GitIgnoreScope
impl Clone for GitIgnoreScope
Source§fn clone(&self) -> GitIgnoreScope
fn clone(&self) -> GitIgnoreScope
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 GitIgnoreScope
impl Debug for GitIgnoreScope
Source§impl Display for GitIgnoreScope
impl Display for GitIgnoreScope
Source§impl FromStr for GitIgnoreScope
impl FromStr for GitIgnoreScope
Source§type Err = GitIgnoreParseError
type Err = GitIgnoreParseError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<GitIgnoreScope, <GitIgnoreScope as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GitIgnoreScope, <GitIgnoreScope as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for GitIgnoreScope
impl Hash for GitIgnoreScope
Source§impl Ord for GitIgnoreScope
impl Ord for GitIgnoreScope
Source§fn cmp(&self, other: &GitIgnoreScope) -> Ordering
fn cmp(&self, other: &GitIgnoreScope) -> 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 GitIgnoreScope
impl PartialEq for GitIgnoreScope
Source§fn eq(&self, other: &GitIgnoreScope) -> bool
fn eq(&self, other: &GitIgnoreScope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GitIgnoreScope
impl PartialOrd for GitIgnoreScope
impl Copy for GitIgnoreScope
impl Eq for GitIgnoreScope
impl StructuralPartialEq for GitIgnoreScope
Auto Trait Implementations§
impl Freeze for GitIgnoreScope
impl RefUnwindSafe for GitIgnoreScope
impl Send for GitIgnoreScope
impl Sync for GitIgnoreScope
impl Unpin for GitIgnoreScope
impl UnsafeUnpin for GitIgnoreScope
impl UnwindSafe for GitIgnoreScope
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