pub struct SourceMap(pub Vec<(usize, SourceLine)>);Expand description
Tuple Fields§
§0: Vec<(usize, SourceLine)>Implementations§
Source§impl SourceMap
impl SourceMap
Sourcepub fn original_file_and_line(&self, key: usize) -> Option<SourceLine>
pub fn original_file_and_line(&self, key: usize) -> Option<SourceLine>
Given a 1-based line number in the preprocessed source file, translate that to a file name and line number as original inputs to the parsing process.
Trait Implementations§
impl Eq for SourceMap
impl StructuralPartialEq for SourceMap
Auto Trait Implementations§
impl Freeze for SourceMap
impl RefUnwindSafe for SourceMap
impl Send for SourceMap
impl Sync for SourceMap
impl Unpin for SourceMap
impl UnwindSafe for SourceMap
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