pub trait ProcessedDocument: Document {
// Required methods
fn term_frequency<K>(&self, term: K) -> usize
where K: Borrow<Self::Term>;
fn max(&self) -> Option<&Self::Term>;
}
Expand description
A document where the frequencies of each term is already calculated.
Required Methods§
Sourcefn term_frequency<K>(&self, term: K) -> usize
fn term_frequency<K>(&self, term: K) -> usize
Returns the number of times a (non-normalized) term exists within the document.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.