pub struct HighlightStats {
pub calls: u64,
pub hits: u64,
pub misses: u64,
pub evictions: u64,
pub bytes: usize,
}Expand description
Counters useful for measuring highlighting and cache behavior.
Fields§
§calls: u64§hits: u64§misses: u64§evictions: u64§bytes: usizeBytes actually supplied to Tree-sitter parsers.
Trait Implementations§
Source§impl Clone for HighlightStats
impl Clone for HighlightStats
Source§fn clone(&self) -> HighlightStats
fn clone(&self) -> HighlightStats
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 moreimpl Copy for HighlightStats
Source§impl Debug for HighlightStats
impl Debug for HighlightStats
Source§impl Default for HighlightStats
impl Default for HighlightStats
Source§fn default() -> HighlightStats
fn default() -> HighlightStats
Returns the “default value” for a type. Read more
impl Eq for HighlightStats
Source§impl PartialEq for HighlightStats
impl PartialEq for HighlightStats
impl StructuralPartialEq for HighlightStats
Auto Trait Implementations§
impl Freeze for HighlightStats
impl RefUnwindSafe for HighlightStats
impl Send for HighlightStats
impl Sync for HighlightStats
impl Unpin for HighlightStats
impl UnsafeUnpin for HighlightStats
impl UnwindSafe for HighlightStats
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.