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: usize
The 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 for MatchLocation<'a>
impl<'a> PartialEq for MatchLocation<'a>
Source§impl<'a> PartialOrd for MatchLocation<'a>
impl<'a> PartialOrd for MatchLocation<'a>
impl<'a> Eq for MatchLocation<'a>
impl<'a> StructuralPartialEq for MatchLocation<'a>
Auto Trait Implementations§
impl<'a> Freeze for MatchLocation<'a>
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