pub struct SymbolRange {
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 SymbolRange
impl Clone for SymbolRange
Source§fn clone(&self) -> SymbolRange
fn clone(&self) -> SymbolRange
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 SymbolRange
impl Debug for SymbolRange
Source§impl PartialEq for SymbolRange
impl PartialEq for SymbolRange
impl Copy for SymbolRange
impl Eq for SymbolRange
impl StructuralPartialEq for SymbolRange
Auto Trait Implementations§
impl Freeze for SymbolRange
impl RefUnwindSafe for SymbolRange
impl Send for SymbolRange
impl Sync for SymbolRange
impl Unpin for SymbolRange
impl UnsafeUnpin for SymbolRange
impl UnwindSafe for SymbolRange
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