pub fn classify_id(input: &str) -> ItoIdKindExpand 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 structure | Kind |
|---|---|
NNN.SS-NN | SubModuleChangeId |
NNN.SS | SubModuleId |
NNN-NN | ModuleChangeId |
NNN | ModuleId |