[−][src]Trait finalfrontier::idx::WordIdx
Vocabulary indexing trait.
This trait defines methods shared by indexing types.
Required methods
fn word_idx(&self) -> u64
Return the unique word index for the WordIdx.
fn from_word_idx(word_idx: u64) -> Self
Build a new WordIdx containing only a single index.
fn len(&self) -> usize
Return the number of indices.