indexed-vector 0.1.0

A Rust library that implements vector container that can be indexed with specified function.
Documentation
1
2
3
4
5
6
7
8
use std::slice::Iter;

pub trait IndexedVector<K, V> {
    /// Insert an item into the vector.
    fn insert(&mut self, item: V);
    /// Search for items with the given key.
    fn search(&self, key: &K) -> Iter<'_, V>;
}