Function icu_datagen::key

source ·
pub fn key<S: AsRef<str>>(string: S) -> Option<DataKey>
Expand description

Parses a human-readable key identifier into a DataKey.

Example

assert_eq!(
    icu_datagen::key("list/and@1"),
    Some(icu::list::provider::AndListV1Marker::KEY),
);