read_symbol_slice_from_source

Function read_symbol_slice_from_source 

Source
pub fn read_symbol_slice_from_source(
    store: &AtlasStore,
    file: &Path,
    selector: &SymbolSliceSelector<'_>,
    source: &str,
) -> ServiceResult<CodeSlice>
Expand description

Read a symbol body from caller-verified source bytes.

ยงErrors

Returns an error when the symbol is absent, ambiguous, filtered out by the selector, or its indexed range is invalid for the supplied source.