pub struct LineNumbers<'a> { /* private fields */ }Expand description
A helper struct that stores the new line indexes of the input text. This is used to get the line number of a given span.
Implementations§
Source§impl LineNumbers<'_>
impl LineNumbers<'_>
Auto Trait Implementations§
impl<'a> Freeze for LineNumbers<'a>
impl<'a> RefUnwindSafe for LineNumbers<'a>
impl<'a> Send for LineNumbers<'a>
impl<'a> Sync for LineNumbers<'a>
impl<'a> Unpin for LineNumbers<'a>
impl<'a> UnwindSafe for LineNumbers<'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