read_indexed_code_slice_from_source

Function read_indexed_code_slice_from_source 

Source
pub fn read_indexed_code_slice_from_source(
    store: &AtlasStore,
    file: &Path,
    start_line: usize,
    end_line: Option<usize>,
    source: &str,
) -> ServiceResult<CodeSlice>
Expand description

Read an exact line slice from caller-verified source bytes.

ยงErrors

Returns an error when the file is not indexed or line numbers are invalid.