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 (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 DiagnosticRange
Source§impl Debug for DiagnosticRange
impl Debug for DiagnosticRange
impl Eq for DiagnosticRange
Source§impl PartialEq for DiagnosticRange
impl PartialEq for DiagnosticRange
Source§fn eq(&self, other: &DiagnosticRange) -> bool
fn eq(&self, other: &DiagnosticRange) -> bool
Tests for
self and other values to be equal, and is used by ==.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