pub struct MappedRange {
pub source: u32,
pub original_start_line: u32,
pub original_start_column: u32,
pub original_end_line: u32,
pub original_end_column: u32,
}Expand description
A mapped range: original start/end positions for a generated range.
Returned by SourceMap::map_range. Both endpoints must resolve to the
same source file.
Fields§
§source: u32Index into SourceMap::sources.
original_start_line: u320-based start line in the original source.
original_start_column: u320-based start column in the original source.
original_end_line: u320-based end line in the original source.
original_end_column: u320-based end column in the original source.
Trait Implementations§
Source§impl Clone for MappedRange
impl Clone for MappedRange
Source§fn clone(&self) -> MappedRange
fn clone(&self) -> MappedRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MappedRange
impl RefUnwindSafe for MappedRange
impl Send for MappedRange
impl Sync for MappedRange
impl Unpin for MappedRange
impl UnsafeUnpin for MappedRange
impl UnwindSafe for MappedRange
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