Struct gix_attributes::search::MatchLocation
source · pub struct MatchLocation<'a> {
pub source: Option<&'a Path>,
pub sequence_number: usize,
}Expand description
Describes in which what file and line the match was found.
Fields§
§source: Option<&'a Path>The path to the source from which the pattern was loaded, or None if it was specified by other means.
sequence_number: usizeThe line at which the pattern was found in its source file, or the occurrence in which it was provided.
Trait Implementations§
source§impl<'a> Clone for MatchLocation<'a>
impl<'a> Clone for MatchLocation<'a>
source§fn clone(&self) -> MatchLocation<'a>
fn clone(&self) -> MatchLocation<'a>
Returns a copy 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 moresource§impl<'a> Debug for MatchLocation<'a>
impl<'a> Debug for MatchLocation<'a>
source§impl<'a> Hash for MatchLocation<'a>
impl<'a> Hash for MatchLocation<'a>
source§impl<'a> Ord for MatchLocation<'a>
impl<'a> Ord for MatchLocation<'a>
source§fn cmp(&self, other: &MatchLocation<'a>) -> Ordering
fn cmp(&self, other: &MatchLocation<'a>) -> 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
source§impl<'a> PartialEq<MatchLocation<'a>> for MatchLocation<'a>
impl<'a> PartialEq<MatchLocation<'a>> for MatchLocation<'a>
source§fn eq(&self, other: &MatchLocation<'a>) -> bool
fn eq(&self, other: &MatchLocation<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> PartialOrd<MatchLocation<'a>> for MatchLocation<'a>
impl<'a> PartialOrd<MatchLocation<'a>> for MatchLocation<'a>
source§fn partial_cmp(&self, other: &MatchLocation<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &MatchLocation<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<'a> Eq for MatchLocation<'a>
impl<'a> StructuralEq for MatchLocation<'a>
impl<'a> StructuralPartialEq for MatchLocation<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MatchLocation<'a>
impl<'a> Send for MatchLocation<'a>
impl<'a> Sync for MatchLocation<'a>
impl<'a> Unpin for MatchLocation<'a>
impl<'a> UnwindSafe for MatchLocation<'a>
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