Skip to main content

doc_line_text_range

Function doc_line_text_range 

Source
pub fn doc_line_text_range(source: &str, span: Span) -> Range<usize>
Expand description

#1888: the byte range of a doc line’s text within source, as doc_line_text returns it, for callers that map positions in a doc back to the source (document links).