use-id-prefix
Prefixed identifier parsing and formatting helpers for RustUse.
Install
[]
= "0.0.1"
Foundation
use-id-prefix models prefixes such as usr, org, repo, and evt, then composes them with validated identifier bodies using a fixed prefix_value shape.
Example
use ;
;
let parsed = parse?;
let typed = new?;
assert_eq!;
assert_eq!;
# Ok::
When to use directly
Choose use-id-prefix when prefix parsing and formatting are the only identifier concern you need.
Scope
- Prefixes stay lowercase ASCII with optional digits after the first character.
- Values stay lightweight and string-backed.
- Registry lookup and storage policies are out of scope.
Status
use-id-prefix is a pre-1.0 crate with a narrow prefixed-ID API.