pub struct ParsedContext<'i> { /* private fields */ }
Expand description
Context information carrying the metadata of the entry.
Implementations§
Source§impl ParsedContext<'_>
impl ParsedContext<'_>
Sourcepub fn compute_line_start(&self) -> usize
pub fn compute_line_start(&self) -> usize
Computes the starting line number from this context. Note this function is O(N), not a cheap function.
Sourcepub fn span(&self) -> ParsedSpan
pub fn span(&self) -> ParsedSpan
Returns the position of the parsed string within the original &str
,
which can be used to find the position of the Tracked
item.
Trait Implementations§
Source§impl<'i> Debug for ParsedContext<'i>
impl<'i> Debug for ParsedContext<'i>
Source§impl<'i> PartialEq for ParsedContext<'i>
impl<'i> PartialEq for ParsedContext<'i>
impl<'i> Eq for ParsedContext<'i>
impl<'i> StructuralPartialEq for ParsedContext<'i>
Auto Trait Implementations§
impl<'i> Freeze for ParsedContext<'i>
impl<'i> RefUnwindSafe for ParsedContext<'i>
impl<'i> Send for ParsedContext<'i>
impl<'i> Sync for ParsedContext<'i>
impl<'i> Unpin for ParsedContext<'i>
impl<'i> UnwindSafe for ParsedContext<'i>
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