Trait TableIndex

Source
pub trait TableIndex<T> {
    // Required methods
    fn insert(&self, value: T, link: Link) -> Option<Link>;
    fn remove(&self, value: T, link: Link) -> Option<(T, Link)>;
}

Required Methods§

Source

fn insert(&self, value: T, link: Link) -> Option<Link>

Source

fn remove(&self, value: T, link: Link) -> Option<(T, Link)>

Implementors§

Source§

impl<T, Node> TableIndex<T> for IndexMap<T, Link, Node>
where T: Eq + Hash + Clone + Send + Ord, Node: NodeLike<Pair<T, Link>> + Send + 'static,

Source§

impl<T, Node> TableIndex<T> for IndexMultiMap<T, Link, Node>
where T: Eq + Hash + Clone + Send + Ord, Node: NodeLike<MultiPair<T, Link>> + Send + 'static,