pub struct TrieSetStore { /* private fields */ }Expand description
Set Trie.
Implements a trie data-structure to maintain sets, and perform efficient sub-set/super-set queries.
Implementations§
Source§impl TrieSetStore
impl TrieSetStore
Sourcepub fn to_graphviz(&self) -> String
pub fn to_graphviz(&self) -> String
generates the graphviz representation of the trie.
Trait Implementations§
Source§impl Debug for TrieSetStore
impl Debug for TrieSetStore
Source§impl Default for TrieSetStore
impl Default for TrieSetStore
Source§impl<T: Copy + Eq + Into<usize> + From<usize>> SetStore<T> for TrieSetStore
impl<T: Copy + Eq + Into<usize> + From<usize>> SetStore<T> for TrieSetStore
Source§type SubsetIterator = IntoIter<Vec<T>>
type SubsetIterator = IntoIter<Vec<T>>
Iterator trait over subsets
Source§type SupersetIterator = IntoIter<Vec<T>>
type SupersetIterator = IntoIter<Vec<T>>
Iterator trait over supersets
Source§fn find_subsets(&self, s: &[T]) -> Self::SubsetIterator
fn find_subsets(&self, s: &[T]) -> Self::SubsetIterator
enumerates all subsets
Source§fn find_supersets(&self, s: &[T]) -> Self::SupersetIterator
fn find_supersets(&self, s: &[T]) -> Self::SupersetIterator
enumerates all supersets
Auto Trait Implementations§
impl Freeze for TrieSetStore
impl RefUnwindSafe for TrieSetStore
impl Send for TrieSetStore
impl Sync for TrieSetStore
impl Unpin for TrieSetStore
impl UnwindSafe for TrieSetStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more