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>; }