pub struct ScanEvidence {
pub path: PathBuf,
pub line_number: usize,
pub pattern: &'static str,
pub snippet: String,
}Expand description
One line of source evidence supporting a heuristic motif match.
Fields§
§path: PathBufFile containing the matched pattern.
line_number: usize1-based line number of the match.
pattern: &'static strPattern that triggered the evidence hit.
snippet: StringTrimmed source snippet from the matching line.
Trait Implementations§
Source§impl Clone for ScanEvidence
impl Clone for ScanEvidence
Source§fn clone(&self) -> ScanEvidence
fn clone(&self) -> ScanEvidence
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 moreAuto Trait Implementations§
impl Freeze for ScanEvidence
impl RefUnwindSafe for ScanEvidence
impl Send for ScanEvidence
impl Sync for ScanEvidence
impl Unpin for ScanEvidence
impl UnsafeUnpin for ScanEvidence
impl UnwindSafe for ScanEvidence
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