PartitionWrite

Trait PartitionWrite 

Source
pub trait PartitionWrite<L: Level> {
    // Required methods
    fn insert(&mut self, value: L::Value) -> bool;
    fn remove(&mut self, value: L::Value) -> bool;
}

Required Methods§

Source

fn insert(&mut self, value: L::Value) -> bool

Inserts the value into the partition unless it already exists. Returns true if the insertion occurred, false otherwise.

Source

fn remove(&mut self, value: L::Value) -> bool

Removes the value from the partition if it exists. Returns true if the removal occurred, false otherwise.

Implementors§