Struct rustc_span::CachingSourceMapView
source · [−]pub struct CachingSourceMapView<'sm> {
source_map: &'sm SourceMap,
line_cache: [CacheEntry; 3],
time_stamp: usize,
}Fields
source_map: &'sm SourceMapline_cache: [CacheEntry; 3]time_stamp: usizeImplementations
pub fn byte_pos_to_line_and_col(
&mut self,
pos: BytePos
) -> Option<(Lrc<SourceFile>, usize, BytePos)>
Trait Implementations
Auto Trait Implementations
impl<'sm> !RefUnwindSafe for CachingSourceMapView
impl<'sm> !Send for CachingSourceMapView
impl<'sm> !Sync for CachingSourceMapView
impl<'sm> Unpin for CachingSourceMapView
impl<'sm> !UnwindSafe for CachingSourceMapView
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 136 bytes