pub struct Span<'a> {
pub range: Range<usize>,
pub fragment: &'a str,
}
Fields§
§range: Range<usize>
§fragment: &'a str
Trait Implementations§
Source§impl<'a> From<LocatedSpan<&'a str, LexerState>> for Span<'a>
impl<'a> From<LocatedSpan<&'a str, LexerState>> for Span<'a>
Source§fn from(s: LocatedSpan<'a>) -> Self
fn from(s: LocatedSpan<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Span<'a>
impl<'a> RefUnwindSafe for Span<'a>
impl<'a> Send for Span<'a>
impl<'a> Sync for Span<'a>
impl<'a> Unpin for Span<'a>
impl<'a> UnwindSafe for Span<'a>
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