pub struct SimpleSpan { /* private fields */ }Expand description
A simple implementation of Span.
Implementations§
Trait Implementations§
Source§impl Clone for SimpleSpan
impl Clone for SimpleSpan
Source§fn clone(&self) -> SimpleSpan
fn clone(&self) -> SimpleSpan
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 SimpleSpan
impl Debug for SimpleSpan
Source§impl Default for SimpleSpan
impl Default for SimpleSpan
Source§impl From<&SimpleSpan> for SimpleSpan
impl From<&SimpleSpan> for SimpleSpan
Source§fn from(value: &SimpleSpan) -> Self
fn from(value: &SimpleSpan) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SimpleSpan
impl PartialEq for SimpleSpan
Source§impl Span for SimpleSpan
impl Span for SimpleSpan
Source§type Index = Arc<LineIndexer>
type Index = Arc<LineIndexer>
The index of the source text.
Source§fn source_text(&self) -> &Self::Source
fn source_text(&self) -> &Self::Source
Get the source text of the span.
Source§fn source_index(&self) -> &Self::Index
fn source_index(&self) -> &Self::Index
Get the index of the source.
impl Eq for SimpleSpan
impl StructuralPartialEq for SimpleSpan
Auto Trait Implementations§
impl Freeze for SimpleSpan
impl RefUnwindSafe for SimpleSpan
impl Send for SimpleSpan
impl Sync for SimpleSpan
impl Unpin for SimpleSpan
impl UnwindSafe for SimpleSpan
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