pub struct Mapping { /* private fields */ }
Expand description
Mapping of a processed token to its source
Implementations§
Source§impl Mapping
impl Mapping
Sourcepub const fn processed_column(&self) -> usize
pub const fn processed_column(&self) -> usize
Get the column of the processed token
Sourcepub const fn original_line(&self) -> usize
pub const fn original_line(&self) -> usize
Get the line of the original token
Sourcepub const fn original_column(&self) -> usize
pub const fn original_column(&self) -> usize
Get the column of the original token
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
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