pub struct RegionSide {
pub file: usize,
pub unit: usize,
pub run: StatementRun,
pub range: ByteRange,
}Expand description
One side of a clone region: where the shared run sits in one unit.
Fields§
§file: usizeIndex of the file in the analysed slice.
unit: usizeIndex of the enclosing unit in the file’s units.
run: StatementRunThe statement run the region covers.
range: ByteRangeSource bytes the run covers; reporting only.
Trait Implementations§
Source§impl Clone for RegionSide
impl Clone for RegionSide
Source§fn clone(&self) -> RegionSide
fn clone(&self) -> RegionSide
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 moreimpl Copy for RegionSide
Source§impl Debug for RegionSide
impl Debug for RegionSide
impl Eq for RegionSide
Source§impl Ord for RegionSide
impl Ord for RegionSide
Source§fn cmp(&self, other: &RegionSide) -> Ordering
fn cmp(&self, other: &RegionSide) -> Ordering
1.21.0 (const: unstable) · 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 PartialEq for RegionSide
impl PartialEq for RegionSide
Source§impl PartialOrd for RegionSide
impl PartialOrd for RegionSide
impl StructuralPartialEq for RegionSide
Auto Trait Implementations§
impl Freeze for RegionSide
impl RefUnwindSafe for RegionSide
impl Send for RegionSide
impl Sync for RegionSide
impl Unpin for RegionSide
impl UnsafeUnpin for RegionSide
impl UnwindSafe for RegionSide
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.