Struct GitIgnorePattern
pub struct GitIgnorePattern(/* private fields */);Expand description
A non-empty ignore pattern.
Implementations§
§impl GitIgnorePattern
impl GitIgnorePattern
pub fn new(
value: impl AsRef<str>,
) -> Result<GitIgnorePattern, GitIgnoreParseError>
pub fn new( value: impl AsRef<str>, ) -> Result<GitIgnorePattern, GitIgnoreParseError>
Creates an ignore pattern from text.
§Errors
Returns GitIgnoreParseError::EmptyPattern when the pattern is empty.
Trait Implementations§
§impl AsRef<str> for GitIgnorePattern
impl AsRef<str> for GitIgnorePattern
§impl Clone for GitIgnorePattern
impl Clone for GitIgnorePattern
§fn clone(&self) -> GitIgnorePattern
fn clone(&self) -> GitIgnorePattern
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 GitIgnorePattern
impl Debug for GitIgnorePattern
§impl Display for GitIgnorePattern
impl Display for GitIgnorePattern
§impl Hash for GitIgnorePattern
impl Hash for GitIgnorePattern
§impl Ord for GitIgnorePattern
impl Ord for GitIgnorePattern
§fn cmp(&self, other: &GitIgnorePattern) -> Ordering
fn cmp(&self, other: &GitIgnorePattern) -> 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
§impl PartialEq for GitIgnorePattern
impl PartialEq for GitIgnorePattern
§impl PartialOrd for GitIgnorePattern
impl PartialOrd for GitIgnorePattern
impl Eq for GitIgnorePattern
impl StructuralPartialEq for GitIgnorePattern
Auto Trait Implementations§
impl Freeze for GitIgnorePattern
impl RefUnwindSafe for GitIgnorePattern
impl Send for GitIgnorePattern
impl Sync for GitIgnorePattern
impl Unpin for GitIgnorePattern
impl UnsafeUnpin for GitIgnorePattern
impl UnwindSafe for GitIgnorePattern
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