pub struct CloneTrace {
pub file: PathBuf,
pub line: usize,
pub matched_instance: Option<CloneInstance>,
pub clone_groups: Vec<TracedCloneGroup>,
}Expand description
Result of tracing a clone: all groups containing the code at a source location or addressed by a stable clone fingerprint.
Fields§
§file: PathBufFile passed to the trace request, root-relative when a group matches.
line: usize1-based line passed to the trace request or representative group line.
matched_instance: Option<CloneInstance>The matched clone instance, if one exists.
clone_groups: Vec<TracedCloneGroup>Clone groups matched by the trace request.
Trait Implementations§
Source§impl Debug for CloneTrace
impl Debug for CloneTrace
Auto Trait Implementations§
impl Freeze for CloneTrace
impl RefUnwindSafe for CloneTrace
impl Send for CloneTrace
impl Sync for CloneTrace
impl Unpin for CloneTrace
impl UnsafeUnpin for CloneTrace
impl UnwindSafe for CloneTrace
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