pub struct EVMPassStats {
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 EVMPassStats
impl EVMPassStats
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 EVMPassStats
impl Clone for EVMPassStats
Source§fn clone(&self) -> EVMPassStats
fn clone(&self) -> EVMPassStats
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 EVMPassStats
impl Debug for EVMPassStats
Source§impl Default for EVMPassStats
impl Default for EVMPassStats
Source§fn default() -> EVMPassStats
fn default() -> EVMPassStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EVMPassStats
impl RefUnwindSafe for EVMPassStats
impl Send for EVMPassStats
impl Sync for EVMPassStats
impl Unpin for EVMPassStats
impl UnsafeUnpin for EVMPassStats
impl UnwindSafe for EVMPassStats
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