Skip to main content

segment_all

Function segment_all 

Source
pub fn segment_all(source: &str, scope_list: &[Scope]) -> Vec<(usize, Span)>
Expand description

Segments source for every scope, as (scope index, region) pairs sorted by position (scope order breaks ties). Regions from different scopes may overlap — each scope’s family is independent.