Skip to main content

constraint_token_spans

Function constraint_token_spans 

Source
pub fn constraint_token_spans(source: &str) -> Vec<Span>
Expand description

Constrained generics slice 0: the span of every constraint name in a bound — a type parameter’s (T: Eq on a fn, type or capability operation) and a method’s where A: Eq entries — so the editor can classify them as interface tokens.