source_range

Function source_range 

Source
pub fn source_range(
    source: &Source,
    span: impl Into<DiagSpan>,
) -> Option<Range<usize>>
Expand description

Get the byte range for a diagnostic span within a source file.