[][src]Struct darts::DoubleArrayTrie

pub struct DoubleArrayTrie { /* fields omitted */ }

A Double Array Trie.

Methods

impl DoubleArrayTrie[src]

pub fn search<'a, 'b>(
    &'b self,
    haystack: &'a str
) -> DoubleArrayTrieSearcher<'a, 'b>
[src]

Run Forward Maximum Matching Method on a string. Returns a Searcher.

impl DoubleArrayTrie[src]

Match whole string.

Important traits for PrefixIter<'a>
pub fn common_prefix_iter<'a>(&'a self, key: &'a str) -> PrefixIter<'a>[src]

Iterate thorough all of the matched prefixes. Returning an iterator.

Find all matched prefixes. Returns [(end_index, value)].

pub fn save<W: Write>(&self, w: &mut W) -> Result<()>[src]

Save DAT to an output stream.

pub fn load<R: Read>(r: &mut R) -> Result<Self>[src]

Load DAT from input stream.

Trait Implementations

impl Debug for DoubleArrayTrie[src]

impl Serialize for DoubleArrayTrie[src]

impl<'de> Deserialize<'de> for DoubleArrayTrie[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]