Skip to main content

classify_id

Function classify_id 

Source
pub fn classify_id(input: &str) -> ItoIdKind
Expand description

Classify an opaque identifier string into one of the four ItoIdKind variants.

This is a lightweight structural heuristic. It does not validate the identifier; use the appropriate parse_* function for full validation.

The classification inspects the portion of the string before the first _ (the name separator), so hyphens inside name suffixes (e.g., 005_dev-tooling) do not affect the result.

Prefix structureKind
NNN.SS-NNSubModuleChangeId
NNN.SSSubModuleId
NNN-NNModuleChangeId
NNNModuleId