Struct LineInfo
pub struct LineInfo<'a> {
pub per_line: Vec<(u16, u16)>,
source: &'a str,
pub line_starts: Vec<usize>,
}
Fields§
§per_line: Vec<(u16, u16)>
Number of tokens on each line (run-length encoded) (line_number, tokens_on_line)
source: &'a str
§line_starts: Vec<usize>
The starting position of each line in the source code
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LineInfo<'a>
impl<'a> RefUnwindSafe for LineInfo<'a>
impl<'a> Send for LineInfo<'a>
impl<'a> Sync for LineInfo<'a>
impl<'a> Unpin for LineInfo<'a>
impl<'a> UnwindSafe for LineInfo<'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