[−][src]Struct finalfrontier::VocabBuilder
Generic builder struct to count types.
Items are added to the vocabulary and counted using the count
method.
There is no explicit build method, conversion is done via implementing
From<VocabBuilder<T>>
.
Methods
impl<C, T> VocabBuilder<C, T> where
T: Hash + Eq,
[src]
T: Hash + Eq,
Trait Implementations
impl<T, S> From<VocabBuilder<SimpleVocabConfig, T>> for SimpleVocab<S> where
T: Hash + Eq + Into<S>,
S: Hash + Eq + Clone + Ord,
[src]
T: Hash + Eq + Into<S>,
S: Hash + Eq + Clone + Ord,
Constructs a SimpleVocab<S>
from a VocabBuilder<T>
where T: Into<S>
.
fn from(builder: VocabBuilder<SimpleVocabConfig, T>) -> Self
[src]
impl<T> From<VocabBuilder<SubwordVocabConfig, T>> for SubwordVocab where
T: Hash + Eq + Into<String>,
[src]
T: Hash + Eq + Into<String>,
Constructs a SubwordVocab
from a VocabBuilder<T>
where T: Into<String>
.
fn from(builder: VocabBuilder<SubwordVocabConfig, T>) -> Self
[src]
Auto Trait Implementations
impl<C, T> Send for VocabBuilder<C, T> where
C: Send,
T: Send,
C: Send,
T: Send,
impl<C, T> Sync for VocabBuilder<C, T> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
impl<C, T> Unpin for VocabBuilder<C, T> where
C: Unpin,
T: Unpin,
C: Unpin,
T: Unpin,
impl<C, T> UnwindSafe for VocabBuilder<C, T> where
C: UnwindSafe,
T: UnwindSafe,
C: UnwindSafe,
T: UnwindSafe,
impl<C, T> RefUnwindSafe for VocabBuilder<C, T> where
C: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,