pub struct Stats {
pub total_commands: usize,
pub unique_commands: usize,
pub most_used: Option<(String, usize)>,
pub least_used: Option<(String, usize)>,
pub average: f64,
}Expand description
Summary statistics for a ranked command list.
Fields§
§total_commands: usizeTotal command occurrences (sum of counts).
unique_commands: usizeNumber of distinct commands.
most_used: Option<(String, usize)>Most-used command and its count, if any.
least_used: Option<(String, usize)>Least-used command and its count, if any.
average: f64Average uses per unique command.
Trait Implementations§
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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