[][src]Struct sticker::NoopCollector

pub struct NoopCollector<E> where
    E: SentenceEncoder,
    E::Encoding: Eq + Hash
{ /* fields omitted */ }

Collector that does not store the vectorized sentences.

This collector can be used to construct lookup tables as a side-effect of vectorizing the input.

Methods

impl<E> NoopCollector<E> where
    E: SentenceEncoder,
    E::Encoding: Eq + Hash
[src]

pub fn new(
    encoder: E,
    numberer: Numberer<E::Encoding>,
    vectorizer: SentVectorizer
) -> NoopCollector<E>
[src]

pub fn labels(&self) -> &Numberer<E::Encoding>[src]

Trait Implementations

impl<E> Collector for NoopCollector<E> where
    E: SentenceEncoder,
    E::Encoding: Clone + Eq + Hash
[src]

Auto Trait Implementations

impl<E> Sync for NoopCollector<E> where
    E: Sync,
    <E as SentenceEncoder>::Encoding: Sync

impl<E> Send for NoopCollector<E> where
    E: Send,
    <E as SentenceEncoder>::Encoding: Send

impl<E> Unpin for NoopCollector<E> where
    E: Unpin,
    <E as SentenceEncoder>::Encoding: Unpin

impl<E> RefUnwindSafe for NoopCollector<E> where
    E: RefUnwindSafe,
    <E as SentenceEncoder>::Encoding: RefUnwindSafe

impl<E> UnwindSafe for NoopCollector<E> where
    E: UnwindSafe,
    <E as SentenceEncoder>::Encoding: UnwindSafe

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]