#[non_exhaustive]pub struct DictionaryStats {
pub name: String,
pub term_count: usize,
pub source: DictionarySource,
}Expand description
Dictionary metadata used for diagnostics and tests.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringDictionary name.
term_count: usizeNumber of configured terms.
source: DictionarySourceDictionary source.
Implementations§
Trait Implementations§
Source§impl Clone for DictionaryStats
impl Clone for DictionaryStats
Source§fn clone(&self) -> DictionaryStats
fn clone(&self) -> DictionaryStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DictionaryStats
impl Debug for DictionaryStats
Source§impl PartialEq for DictionaryStats
impl PartialEq for DictionaryStats
Source§fn eq(&self, other: &DictionaryStats) -> bool
fn eq(&self, other: &DictionaryStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DictionaryStats
impl StructuralPartialEq for DictionaryStats
Auto Trait Implementations§
impl Freeze for DictionaryStats
impl RefUnwindSafe for DictionaryStats
impl Send for DictionaryStats
impl Sync for DictionaryStats
impl Unpin for DictionaryStats
impl UnsafeUnpin for DictionaryStats
impl UnwindSafe for DictionaryStats
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