Struct rustc_span::caching_source_map_view::CachingSourceMapView [−][src]
pub struct CachingSourceMapView<'sm> {
source_map: &'sm SourceMap,
line_cache: [CacheEntry; 3],
time_stamp: usize,
}
Fields
source_map: &'sm SourceMap
line_cache: [CacheEntry; 3]
time_stamp: usize
Implementations
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<'sm>
impl<'sm> !Send for CachingSourceMapView<'sm>
impl<'sm> !Sync for CachingSourceMapView<'sm>
impl<'sm> Unpin for CachingSourceMapView<'sm>
impl<'sm> !UnwindSafe for CachingSourceMapView<'sm>
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