[][src]Struct finalfrontier::SimpleVocab

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

Generic corpus vocabulary type.

Can be used as an input or output lookup.

Methods

impl<T> SimpleVocab<T> where
    T: Hash + Eq + Clone + Ord
[src]

pub fn get<Q: ?Sized>(&self, context: &Q) -> Option<&CountedType<T>> where
    T: Borrow<Q>,
    Q: Hash + Eq
[src]

Get a specific context

Trait Implementations

impl<T> Vocab for SimpleVocab<T> where
    T: Hash + Eq
[src]

type VocabType = T

type Config = SimpleVocabConfig

impl From<SimpleVocab<String>> for VocabWrap[src]

impl<T, S> From<VocabBuilder<SimpleVocabConfig, T>> for SimpleVocab<S> where
    T: Hash + Eq + Into<S>,
    S: Hash + Eq + Clone + Ord
[src]

Constructs a SimpleVocab<S> from a VocabBuilder<T> where T: Into<S>.

impl<T: Clone> Clone for SimpleVocab<T>[src]

Auto Trait Implementations

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

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

impl<T> Unpin for SimpleVocab<T> where
    T: Unpin

impl<T> UnwindSafe for SimpleVocab<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for SimpleVocab<T> where
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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