tag-vec
A rust crate for a vector of tags
Examples
// Create a vector of tags with the tags
// "healthy"(healthy food), "junk"(junk food) and "veg"(vegetarian)
let foods: = new;
foods.push;
foods.push;
foods.push;
foods.push;
foods.push;
// We don't want healthy or vegetarian food,
// we're not plebs who care about the planet, are we!?
use *;
let mut cool_foods = tags.query;
for food in cool_foods
// Expected output: (It only outputs the indices of the matching elements,
// this is a vec, so the order matters)
// 1
// 3
Features to come:
- Changing the tags of an element
- Removing elements(ugh, this is going to be an expensive operation)
- Popping elements(not expensive at all!)