pub struct Mapping { /* private fields */ }Expand description
Presents an item of the mappings.
Lines and columns in Mapping are start at 0. See Position.
Implementations§
Source§impl Mapping
impl Mapping
Sourcepub fn source_info(&self) -> Option<SourceInfo>
pub fn source_info(&self) -> Option<SourceInfo>
Returns the source information if available.
Sourcepub fn has_source(&self) -> bool
pub fn has_source(&self) -> bool
Checks if the mapping has source information.
Trait Implementations§
impl Eq for Mapping
impl StructuralPartialEq for Mapping
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