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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)