Skip to main content

TableIndex

Trait TableIndex 

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

Required Methods§

Source

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

Source

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

Source

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

Implementors§

Source§

impl<PrimaryKey, const DATA_LENGTH: usize, PkNodeType> TableIndex<PrimaryKey> for PrimaryIndex<PrimaryKey, DATA_LENGTH, PkNodeType>
where PrimaryKey: Debug + Eq + Hash + Clone + Send + Ord, PkNodeType: NodeLike<Pair<PrimaryKey, OffsetEqLink<DATA_LENGTH>>> + Send + 'static,

Source§

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

Source§

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