pub struct SimpleSpan { /* private fields */ }Expand description
A simple implementation of Span.
Implementations§
Source§impl SimpleSpan
impl SimpleSpan
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§fn default() -> SimpleSpan
fn default() -> SimpleSpan
Returns the “default value” for a type. Read more
Source§impl From<&SimpleSpan> for SimpleSpan
impl From<&SimpleSpan> for SimpleSpan
Source§fn from(value: &SimpleSpan) -> SimpleSpan
fn from(value: &SimpleSpan) -> SimpleSpan
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) -> &<SimpleSpan as Span>::Source
fn source_text(&self) -> &<SimpleSpan as Span>::Source
Get the source text of the span.
Source§fn source_index(&self) -> &<SimpleSpan as Span>::Index
fn source_index(&self) -> &<SimpleSpan as Span>::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