pub struct SingleLineSpan {
pub line: LineNumber,
pub start_col: u32,
pub end_col: u32,
}Expand description
A range within a single line of a string.
Fields§
§line: LineNumber§start_col: u32Start column.
end_col: u32End column.
Trait Implementations§
Source§impl Clone for SingleLineSpan
impl Clone for SingleLineSpan
Source§fn clone(&self) -> SingleLineSpan
fn clone(&self) -> SingleLineSpan
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 SingleLineSpan
impl Debug for SingleLineSpan
Source§impl Hash for SingleLineSpan
impl Hash for SingleLineSpan
Source§impl Ord for SingleLineSpan
impl Ord for SingleLineSpan
Source§fn cmp(&self, other: &SingleLineSpan) -> Ordering
fn cmp(&self, other: &SingleLineSpan) -> Ordering
1.21.0 · 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 SingleLineSpan
impl PartialEq for SingleLineSpan
Source§impl PartialOrd for SingleLineSpan
impl PartialOrd for SingleLineSpan
impl Copy for SingleLineSpan
impl Eq for SingleLineSpan
impl StructuralPartialEq for SingleLineSpan
Auto Trait Implementations§
impl Freeze for SingleLineSpan
impl RefUnwindSafe for SingleLineSpan
impl Send for SingleLineSpan
impl Sync for SingleLineSpan
impl Unpin for SingleLineSpan
impl UnwindSafe for SingleLineSpan
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