[−][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,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,