pub struct RegionOccurrence {
pub file: usize,
pub unit: usize,
pub range: ByteRange,
pub start_line: u32,
pub end_line: u32,
pub token_start: usize,
pub token_end: usize,
pub content: FragmentFingerprint,
}Expand description
One occurrence of a duplicated statement run, resolved against the source it was found in.
Fields§
§file: usizeIndex of the file this occurrence sits in.
unit: usizeIndex of the enclosing unit in StructuralReport::units.
range: ByteRangeSource bytes the run covers; reporting only.
start_line: u321-based first line; reporting only, never an identity input.
end_line: u321-based last line; reporting only, never an identity input.
token_start: usizeIndex of the run’s first token in its file’s stream.
token_end: usizeIndex one past the run’s last token in its file’s stream.
content: FragmentFingerprintThe occurrence’s raw content fingerprint: its member content id.
Trait Implementations§
Source§impl Clone for RegionOccurrence
impl Clone for RegionOccurrence
Source§fn clone(&self) -> RegionOccurrence
fn clone(&self) -> RegionOccurrence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegionOccurrence
impl Debug for RegionOccurrence
impl Eq for RegionOccurrence
Source§impl PartialEq for RegionOccurrence
impl PartialEq for RegionOccurrence
impl StructuralPartialEq for RegionOccurrence
Auto Trait Implementations§
impl Freeze for RegionOccurrence
impl RefUnwindSafe for RegionOccurrence
impl Send for RegionOccurrence
impl Sync for RegionOccurrence
impl Unpin for RegionOccurrence
impl UnsafeUnpin for RegionOccurrence
impl UnwindSafe for RegionOccurrence
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.