pub fn read_indexed_code_slice_from_source_bounded_with_selection(
store: &AtlasStore,
file: &Path,
start_line: usize,
end_line: Option<usize>,
source: &str,
output_budget: CodeSliceBudget,
content_selection: ContentSelection,
) -> ServiceResult<CodeSliceDraft>Expand description
Read a bounded line slice from verified source after classified selection.
ยงErrors
Returns an error when the file is outside the explicit selection, is not indexed, has invalid line numbers, or cannot fit the output budget.