pub fn source_range( source: &Source, span: impl Into<DiagSpan>, ) -> Option<Range<usize>>
Get the byte range for a diagnostic span within a source file.