[][src]Function memedb_core::read_tags

pub fn read_tags(path: &Path) -> Result<HashSet<String>, Error>

Reads the file at path and returns the tags inside it if found

Example

let mut tags = HashSet::new();
tags.insert("foo".to_string());
tags.insert("bar".to_string());

let read_tags = read_tags(&Path::new("tagged_meme.png"))?;
assert_eq!(tags, read_tags);