pub struct ShortTermStats {
pub size: usize,
pub capacity: usize,
pub usage: f32,
pub avg_salience: f32,
}Expand description
Short-term buffer statistics
Fields§
§size: usizeCurrent number of patterns
capacity: usizeMaximum capacity
usage: f32Usage ratio (0.0 to 1.0)
avg_salience: f32Average salience
Trait Implementations§
Source§impl Clone for ShortTermStats
impl Clone for ShortTermStats
Source§fn clone(&self) -> ShortTermStats
fn clone(&self) -> ShortTermStats
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 ShortTermStats
impl RefUnwindSafe for ShortTermStats
impl Send for ShortTermStats
impl Sync for ShortTermStats
impl Unpin for ShortTermStats
impl UnwindSafe for ShortTermStats
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