[−][src]Type Definition tmi_parser::Tags
type Tags<'a> = HashMap<&'a str, TagValue<'a>, BuildHasherDefault<TagsHasher>>;
Tags
is type alias for a HashMap
whose keys are &str
and values TagValue
.
Uses slice &str
instead of owned String
in order to avoid data duplication.
Also uses a custom hasher which implements the 'Fnv 1a' hash function.
Examples
let mut map = Tags::default(); map.insert("hello", TagValue::String("world"));