Skip to main content

read_range

Function read_range 

Source
pub fn read_range(
    corpus: &CorpusRoot,
    path: &str,
    start_line: Option<usize>,
    line_count: Option<usize>,
) -> Result<ReadResult>
Expand description

Read a bounded, line-numbered window from a single file.

start_line is 1-based (defaults to 1). line_count is clamped to the configured read limit.