[−][src]Function ellidri_tokens::tags
pub fn tags(s: &str) -> impl Iterator<Item = Tag>
An iterator over the tags of a string.
Example
let mut my_tags = tags("label=007;+custom="); assert_eq!(my_tags.next(), Some(Tag { key: "label", value: Some("007") })); assert_eq!(my_tags.next(), Some(Tag { key: "+custom", value: None })); assert_eq!(my_tags.next(), None);