pub struct StatementSpan {
pub start: usize,
pub end: usize,
pub line: usize,
pub column: usize,
}Expand description
Byte and line/column span for one source statement.
Fields§
§start: usizeByte offset where the statement starts.
end: usizeByte offset where the statement ends.
line: usizeOne-based line where the statement starts.
column: usizeOne-based column where the statement starts.
Trait Implementations§
Source§impl Clone for StatementSpan
impl Clone for StatementSpan
Source§fn clone(&self) -> StatementSpan
fn clone(&self) -> StatementSpan
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 moreSource§impl Debug for StatementSpan
impl Debug for StatementSpan
Source§impl PartialEq for StatementSpan
impl PartialEq for StatementSpan
impl Copy for StatementSpan
impl Eq for StatementSpan
impl StructuralPartialEq for StatementSpan
Auto Trait Implementations§
impl Freeze for StatementSpan
impl RefUnwindSafe for StatementSpan
impl Send for StatementSpan
impl Sync for StatementSpan
impl Unpin for StatementSpan
impl UnsafeUnpin for StatementSpan
impl UnwindSafe for StatementSpan
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more