pub struct ConvergenceMetrics { /* private fields */ }Expand description
Metrics for convergence (iterations to fix).
Implementations§
Source§impl ConvergenceMetrics
impl ConvergenceMetrics
Sourcepub fn new() -> ConvergenceMetrics
pub fn new() -> ConvergenceMetrics
Create new convergence metrics.
Sourcepub fn average_iterations(&self) -> f64
pub fn average_iterations(&self) -> f64
Get average iterations to fix.
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get convergence success rate.
Sourcepub fn total_attempts(&self) -> u64
pub fn total_attempts(&self) -> u64
Get total fix attempts.
Trait Implementations§
Source§impl Clone for ConvergenceMetrics
impl Clone for ConvergenceMetrics
Source§fn clone(&self) -> ConvergenceMetrics
fn clone(&self) -> ConvergenceMetrics
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 moreSource§impl Debug for ConvergenceMetrics
impl Debug for ConvergenceMetrics
Source§impl Default for ConvergenceMetrics
impl Default for ConvergenceMetrics
Source§fn default() -> ConvergenceMetrics
fn default() -> ConvergenceMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConvergenceMetrics
impl RefUnwindSafe for ConvergenceMetrics
impl Send for ConvergenceMetrics
impl Sync for ConvergenceMetrics
impl Unpin for ConvergenceMetrics
impl UnsafeUnpin for ConvergenceMetrics
impl UnwindSafe for ConvergenceMetrics
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more