Skip to main content

parse_format_id

Function parse_format_id 

Source
pub fn parse_format_id(token: &str) -> Result<FormatId, Error>
Expand description

The declared format ID for a caller-supplied token. Tokens are matched case insensitively and accept the historical underscore spelling of a hyphenated alias; the ID itself keeps the stable lower case hyphen grammar.