pub struct PathspecPattern(/* private fields */);Expand description
A pathspec pattern string.
Implementations§
Source§impl PathspecPattern
impl PathspecPattern
Sourcepub fn new(
value: impl AsRef<str>,
) -> Result<PathspecPattern, PathspecParseError>
pub fn new( value: impl AsRef<str>, ) -> Result<PathspecPattern, PathspecParseError>
Trait Implementations§
Source§impl AsRef<str> for PathspecPattern
impl AsRef<str> for PathspecPattern
Source§impl Clone for PathspecPattern
impl Clone for PathspecPattern
Source§fn clone(&self) -> PathspecPattern
fn clone(&self) -> PathspecPattern
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 PathspecPattern
impl Debug for PathspecPattern
Source§impl Display for PathspecPattern
impl Display for PathspecPattern
Source§impl Hash for PathspecPattern
impl Hash for PathspecPattern
Source§impl Ord for PathspecPattern
impl Ord for PathspecPattern
Source§fn cmp(&self, other: &PathspecPattern) -> Ordering
fn cmp(&self, other: &PathspecPattern) -> 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 PathspecPattern
impl PartialEq for PathspecPattern
Source§fn eq(&self, other: &PathspecPattern) -> bool
fn eq(&self, other: &PathspecPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PathspecPattern
impl PartialOrd for PathspecPattern
impl Eq for PathspecPattern
impl StructuralPartialEq for PathspecPattern
Auto Trait Implementations§
impl Freeze for PathspecPattern
impl RefUnwindSafe for PathspecPattern
impl Send for PathspecPattern
impl Sync for PathspecPattern
impl Unpin for PathspecPattern
impl UnsafeUnpin for PathspecPattern
impl UnwindSafe for PathspecPattern
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