pub struct ContextMetrics {
pub pattern_count: usize,
pub memory_bytes: usize,
pub source_count: usize,
pub version: u32,
}Expand description
Context statistics
Fields§
§pattern_count: usizeNumber of patterns in dictionary
memory_bytes: usizeTotal memory used by context (estimated)
source_count: usizeNumber of sources tracked
version: u32Context version
Implementations§
Trait Implementations§
Source§impl Clone for ContextMetrics
impl Clone for ContextMetrics
Source§fn clone(&self) -> ContextMetrics
fn clone(&self) -> ContextMetrics
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 moreSource§impl Debug for ContextMetrics
impl Debug for ContextMetrics
Source§impl Default for ContextMetrics
impl Default for ContextMetrics
Source§fn default() -> ContextMetrics
fn default() -> ContextMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextMetrics
impl RefUnwindSafe for ContextMetrics
impl Send for ContextMetrics
impl Sync for ContextMetrics
impl Unpin for ContextMetrics
impl UnsafeUnpin for ContextMetrics
impl UnwindSafe for ContextMetrics
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