pub trait PrefixOps: PrefixReadOps {
// Required methods
fn insert_prefix(
&mut self,
idx: BaseIndex,
value: Self::T,
) -> Option<Self::T>;
fn remove_prefix(&mut self, idx: BaseIndex) -> Option<Self::T>;
fn get_prefix_exact_mut(&mut self, idx: BaseIndex) -> Option<&mut Self::T>;
}Expand description
Trie node operations for accessing and mutating prefixes.
Required Methods§
Sourcefn insert_prefix(&mut self, idx: BaseIndex, value: Self::T) -> Option<Self::T>
fn insert_prefix(&mut self, idx: BaseIndex, value: Self::T) -> Option<Self::T>
Insert a value at the given base index.
Sourcefn remove_prefix(&mut self, idx: BaseIndex) -> Option<Self::T>
fn remove_prefix(&mut self, idx: BaseIndex) -> Option<Self::T>
Remove the value for the given base index.
Sourcefn get_prefix_exact_mut(&mut self, idx: BaseIndex) -> Option<&mut Self::T>
fn get_prefix_exact_mut(&mut self, idx: BaseIndex) -> Option<&mut Self::T>
Get a mutable reference to the prefix value that matches the given index exactly.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".