pub struct SemanticSourceRange {
pub start: u64,
pub end: u64,
}Expand description
Ephemeral source range attached to one normalized operation.
This is reporting evidence rather than graph data. In particular, changing
a range does not change SemanticOperationGraph serialization or its
fingerprint.
Fields§
§start: u64Inclusive source byte offset.
end: u64Exclusive source byte offset.
Trait Implementations§
Source§impl Clone for SemanticSourceRange
impl Clone for SemanticSourceRange
Source§fn clone(&self) -> SemanticSourceRange
fn clone(&self) -> SemanticSourceRange
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 SemanticSourceRange
Source§impl Debug for SemanticSourceRange
impl Debug for SemanticSourceRange
impl Eq for SemanticSourceRange
Source§impl Ord for SemanticSourceRange
impl Ord for SemanticSourceRange
Source§fn cmp(&self, other: &SemanticSourceRange) -> Ordering
fn cmp(&self, other: &SemanticSourceRange) -> 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 SemanticSourceRange
impl PartialEq for SemanticSourceRange
Source§impl PartialOrd for SemanticSourceRange
impl PartialOrd for SemanticSourceRange
impl StructuralPartialEq for SemanticSourceRange
Auto Trait Implementations§
impl Freeze for SemanticSourceRange
impl RefUnwindSafe for SemanticSourceRange
impl Send for SemanticSourceRange
impl Sync for SemanticSourceRange
impl Unpin for SemanticSourceRange
impl UnsafeUnpin for SemanticSourceRange
impl UnwindSafe for SemanticSourceRange
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.