Type Alias source_map::SpanWithSource

source ·
pub type SpanWithSource = BaseSpan<SourceId>;

Aliased Type§

struct SpanWithSource {
    pub start: u32,
    pub end: u32,
    pub source: SourceId,
}

Fields§

§start: u32§end: u32§source: SourceId

Implementations§

source§

impl SpanWithSource

source

pub fn get_start(&self) -> Position

source

pub fn get_end(&self) -> Position

source

pub fn into_line_column_span<T: StringEncoding>( self, fs: &impl FileSystem ) -> LineColumnSpan<T>

source

pub const NULL_SPAN: SpanWithSource = _

TODO explain use cases

source

pub fn is_null(&self) -> bool

TODO explain use cases

source

pub fn without_source(self) -> Span

Trait Implementations§

source§

impl Debug for SpanWithSource

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more