pub struct CollectionStats {
pub total_documents: usize,
pub avg_document_length: f32,
pub document_frequencies: HashMap<String, usize>,
pub vocabulary_size: usize,
}Expand description
Statistics about the document collection
Fields§
§total_documents: usizeTotal number of documents
avg_document_length: f32Average document length
document_frequencies: HashMap<String, usize>Term document frequencies
vocabulary_size: usizeCollection vocabulary size
Trait Implementations§
Source§impl Clone for CollectionStats
impl Clone for CollectionStats
Source§fn clone(&self) -> CollectionStats
fn clone(&self) -> CollectionStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CollectionStats
impl RefUnwindSafe for CollectionStats
impl Send for CollectionStats
impl Sync for CollectionStats
impl Unpin for CollectionStats
impl UnwindSafe for CollectionStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more