pub struct ParsedSpan(/* private fields */);
Expand description
Range parsed with the given parser within the original input &str
.
Implementations§
Source§impl ParsedSpan
impl ParsedSpan
Sourcepub fn resolve(&self, span: &TrackedSpan) -> Range<usize>
pub fn resolve(&self, span: &TrackedSpan) -> Range<usize>
Returns the span of the given span relative to this span.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedSpan
impl RefUnwindSafe for ParsedSpan
impl Send for ParsedSpan
impl Sync for ParsedSpan
impl Unpin for ParsedSpan
impl UnwindSafe for ParsedSpan
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