[][src]Struct ternary_tree::Tst

pub struct Tst<T> { /* fields omitted */ }

Methods

impl<T> Tst<T>
[src]

pub fn new() -> Self
[src]

pub fn insert(&mut self, key: &str, value: T) -> Option<T>
[src]

pub fn get(&self, key: &str) -> Option<&T>
[src]

pub fn get_mut(&mut self, key: &str) -> Option<&mut T>
[src]

pub fn remove(&mut self, key: &str) -> Option<T>
[src]

pub fn len(&self) -> usize
[src]

pub fn stat(&self) -> Stats
[src]

pub fn clear(&mut self)
[src]

pub fn visit_values<C>(&self, callback: C) where
    C: FnMut(&T), 
[src]

pub fn visit_values_mut<C>(&mut self, callback: C) where
    C: FnMut(&mut T), 
[src]

pub fn visit_complete_values<C>(&self, key: &str, callback: C) where
    C: FnMut(&T), 
[src]

pub fn visit_complete_values_mut<C>(&mut self, key: &str, callback: C) where
    C: FnMut(&mut T), 
[src]

pub fn visit_neighbor_values<C>(&self, key: &str, dist: usize, callback: C) where
    C: FnMut(&T), 
[src]

pub fn visit_neighbor_values_mut<C>(
    &mut self,
    key: &str,
    dist: usize,
    callback: C
) where
    C: FnMut(&mut T), 
[src]

pub fn visit_crossword_values<C>(&self, key: &str, joker: char, callback: C) where
    C: FnMut(&T), 
[src]

pub fn visit_crossword_values_mut<C>(
    &mut self,
    key: &str,
    joker: char,
    callback: C
) where
    C: FnMut(&mut T), 
[src]

pub fn pretty_print(&self, writer: &mut dyn Write)
[src]

Important traits for TstIterator<'a, T>
pub fn iter(&self) -> TstIterator<T>
[src]

Important traits for TstCompleteIterator<'a, T>
pub fn iter_complete(&self, prefix: &str) -> TstCompleteIterator<T>
[src]

Important traits for TstNeighborIterator<'a, 'b, T>
pub fn iter_neighbor<'a, 'b>(
    &'a self,
    key: &'b str,
    range: usize
) -> TstNeighborIterator<'a, 'b, T>
[src]

Important traits for TstCrosswordIterator<'a, 'b, T>
pub fn iter_crossword<'a, 'b>(
    &'a self,
    key: &'b str,
    joker: char
) -> TstCrosswordIterator<'a, 'b, T>
[src]

Trait Implementations

impl<'a, T> IntoIterator for &'a Tst<T>
[src]

type Item = &'a T

The type of the elements being iterated over.

type IntoIter = TstIterator<'a, T>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<T> Send for Tst<T> where
    T: Send

impl<T> Sync for Tst<T> where
    T: Sync

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]