pub struct SnippetRange {
pub start: usize,
pub end: usize,
}Expand description
A half-open character range (start..end) within a snippet’s expanded text.
Fields§
§start: usizeInclusive start character offset.
end: usizeExclusive end character offset.
Trait Implementations§
Source§impl Clone for SnippetRange
impl Clone for SnippetRange
Source§fn clone(&self) -> SnippetRange
fn clone(&self) -> SnippetRange
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 SnippetRange
Source§impl Debug for SnippetRange
impl Debug for SnippetRange
impl Eq for SnippetRange
Source§impl Hash for SnippetRange
impl Hash for SnippetRange
Source§impl PartialEq for SnippetRange
impl PartialEq for SnippetRange
Source§fn eq(&self, other: &SnippetRange) -> bool
fn eq(&self, other: &SnippetRange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnippetRange
Auto Trait Implementations§
impl Freeze for SnippetRange
impl RefUnwindSafe for SnippetRange
impl Send for SnippetRange
impl Sync for SnippetRange
impl Unpin for SnippetRange
impl UnsafeUnpin for SnippetRange
impl UnwindSafe for SnippetRange
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