Skip to main content

RepoReader

Trait RepoReader 

Source
pub trait RepoReader {
    // Required method
    fn read_line(&self, path: &str, line_no: u32) -> Option<String>;
}
Expand description

Port for reading source lines from the repository.

Required Methods§

Source

fn read_line(&self, path: &str, line_no: u32) -> Option<String>

Returns the source line at 1-based line_no, or None when unavailable.

Implementors§