Enum nutrimatic::SearchResult[][src]

pub enum SearchResult<'buf> {
    FailedOn(usize),
    Found(Node<'buf>),
}

The result of searching for a sequence of characters.

This struct is created by the search_string method on Node. See its documentation for more.

Variants

FailedOn(usize)

Result indicating that the search stopped before reaching the end (i.e., FailedOn(n) means that there was no edge in the trie for the character at index n).

Found(Node<'buf>)

Result indicating that traversing the trie through the given characters led to the included node.

Trait Implementations

impl<'buf> Clone for SearchResult<'buf>[src]

impl<'buf> Copy for SearchResult<'buf>[src]

impl<'buf> Debug for SearchResult<'buf>[src]

Auto Trait Implementations

impl<'buf> RefUnwindSafe for SearchResult<'buf>

impl<'buf> Send for SearchResult<'buf>

impl<'buf> Sync for SearchResult<'buf>

impl<'buf> Unpin for SearchResult<'buf>

impl<'buf> UnwindSafe for SearchResult<'buf>

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.