pub struct DiagnosticRange {
pub start: usize,
pub end: usize,
}Expand description
A half-open character-offset range (start..end) in the document.
Fields§
§start: usizeRange start offset (inclusive), in Unicode scalar values (char) from the start of the document.
end: usizeRange end offset (exclusive), in Unicode scalar values (char) from the start of the document.
Implementations§
Trait Implementations§
Source§impl Clone for DiagnosticRange
impl Clone for DiagnosticRange
Source§fn clone(&self) -> DiagnosticRange
fn clone(&self) -> DiagnosticRange
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 DiagnosticRange
impl Debug for DiagnosticRange
Source§impl PartialEq for DiagnosticRange
impl PartialEq for DiagnosticRange
impl Copy for DiagnosticRange
impl Eq for DiagnosticRange
impl StructuralPartialEq for DiagnosticRange
Auto Trait Implementations§
impl Freeze for DiagnosticRange
impl RefUnwindSafe for DiagnosticRange
impl Send for DiagnosticRange
impl Sync for DiagnosticRange
impl Unpin for DiagnosticRange
impl UnsafeUnpin for DiagnosticRange
impl UnwindSafe for DiagnosticRange
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