pub struct L4PassStats {
pub total_runs: u32,
pub successful_runs: u32,
pub total_changes: u64,
pub time_ms: u64,
pub iterations_used: u32,
}Fields§
§total_runs: u32§successful_runs: u32§total_changes: u64§time_ms: u64§iterations_used: u32Implementations§
Source§impl L4PassStats
impl L4PassStats
pub fn new() -> Self
pub fn record_run(&mut self, changes: u64, time_ms: u64, iterations: u32)
pub fn average_changes_per_run(&self) -> f64
pub fn success_rate(&self) -> f64
pub fn format_summary(&self) -> String
Trait Implementations§
Source§impl Clone for L4PassStats
impl Clone for L4PassStats
Source§fn clone(&self) -> L4PassStats
fn clone(&self) -> L4PassStats
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 L4PassStats
impl Debug for L4PassStats
Source§impl Default for L4PassStats
impl Default for L4PassStats
Source§fn default() -> L4PassStats
fn default() -> L4PassStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for L4PassStats
impl RefUnwindSafe for L4PassStats
impl Send for L4PassStats
impl Sync for L4PassStats
impl Unpin for L4PassStats
impl UnsafeUnpin for L4PassStats
impl UnwindSafe for L4PassStats
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