#[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§
Source§impl DictionaryStats
impl DictionaryStats
Sourcepub fn new(
name: impl Into<String>,
term_count: usize,
source: DictionarySource,
) -> DictionaryStats
pub fn new( name: impl Into<String>, term_count: usize, source: DictionarySource, ) -> DictionaryStats
Builds dictionary diagnostics metadata.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.