Skip to main content

classify

Function classify 

Source
pub fn classify(logical: &str) -> PathKind
Expand description

Classifies a logical path the way the reference’s classify does, line for line: the manifest path first, then the root, then the leaf.

classify never validates a stem against the escaped-stem grammar — pkg/a/b/X Y.type classifies as a type with stem X Y, and the leaf match is greedy, so a.type.value is a value with stem a.type.