Skip to main content

source_line

Function source_line 

Source
pub fn source_line(root: &Path, file: &str, line: usize) -> String
Expand description

The literal line a declaration sits on, ASCII-trimmed by trim_source. Returns "" on an unreadable file or an out-of-range line; the caller then prints file:line with nothing after it rather than a row ending in a dangling separator.