Skip to main content

extract_scope_bytes

Function extract_scope_bytes 

Source
pub fn extract_scope_bytes(source: &[u8], range: Option<(u32, u32)>) -> Vec<u8> 
Expand description

Extract bytes for a 1-indexed inclusive line range from source content.

If range is None, returns the full source. Invalid/out-of-range starts yield empty bytes.