pub struct SourceMappedChunk<'a> { /* private fields */ }Expand description
A chunk of source text along with a path and range that identify the origin of the next.
See also OutputSink::sink_source_mapped and the Custom OutputSink section of the top-level documentation.
Implementations§
Source§impl<'a> SourceMappedChunk<'a>
impl<'a> SourceMappedChunk<'a>
Sourcepub fn source_path(&self) -> &Path
pub fn source_path(&self) -> &Path
The path of the file from which the chunk originates.
Sourcepub fn source_range(&self) -> Range<usize>
pub fn source_range(&self) -> Range<usize>
The range in bytes of the span within the source file from which the chunk originates.
Auto Trait Implementations§
impl<'a> Freeze for SourceMappedChunk<'a>
impl<'a> RefUnwindSafe for SourceMappedChunk<'a>
impl<'a> Send for SourceMappedChunk<'a>
impl<'a> Sync for SourceMappedChunk<'a>
impl<'a> Unpin for SourceMappedChunk<'a>
impl<'a> UnwindSafe for SourceMappedChunk<'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