Enum GitIgnoreScope
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§
§impl GitIgnoreScope
impl GitIgnoreScope
Trait Implementations§
§impl Clone for GitIgnoreScope
impl Clone for GitIgnoreScope
§fn clone(&self) -> GitIgnoreScope
fn clone(&self) -> GitIgnoreScope
Returns a duplicate 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 more§impl Debug for GitIgnoreScope
impl Debug for GitIgnoreScope
§impl Display for GitIgnoreScope
impl Display for GitIgnoreScope
§impl FromStr for GitIgnoreScope
impl FromStr for GitIgnoreScope
§type Err = GitIgnoreParseError
type Err = GitIgnoreParseError
The associated error which can be returned from parsing.
§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 more§impl Hash for GitIgnoreScope
impl Hash for GitIgnoreScope
§impl Ord for GitIgnoreScope
impl Ord for GitIgnoreScope
§impl PartialEq for GitIgnoreScope
impl PartialEq for GitIgnoreScope
§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