Struct cargo_culture_kit::OutcomeStats [−][src]
pub struct OutcomeStats { pub success_count: usize, pub fail_count: usize, pub undetermined_count: usize, }
Summary of result statistics generated from aggregating RuleOutcome
s
results for multiple Rule evaluations
Fields
success_count: usize
The number of RuleOutcome::Success
instances observed
fail_count: usize
The number of RuleOutcome::Failure
instances observed
undetermined_count: usize
The number of RuleOutcome::Undetermined
instances observed
Trait Implementations
impl ExitCode for OutcomeStats
[src]
impl ExitCode for OutcomeStats
impl IsSuccess for OutcomeStats
[src]
impl IsSuccess for OutcomeStats
fn is_success(&self) -> bool
[src]
fn is_success(&self) -> bool
Convenience function to answer the simple question "is everything all right?" while providing no answer at all to the useful question "why or why not?" Read more
fn assert_success(&self)
[src]
fn assert_success(&self)
Panic if is_success()
returns false for this instance
impl<T> From<T> for OutcomeStats where
T: Borrow<OutcomesByDescription>,
[src]
impl<T> From<T> for OutcomeStats where
T: Borrow<OutcomesByDescription>,
fn from(full_outcomes: T) -> OutcomeStats
[src]
fn from(full_outcomes: T) -> OutcomeStats
Performs the conversion.
impl Clone for OutcomeStats
[src]
impl Clone for OutcomeStats
fn clone(&self) -> OutcomeStats
[src]
fn clone(&self) -> OutcomeStats
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for OutcomeStats
[src]
impl Debug for OutcomeStats
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for OutcomeStats
[src]
impl Default for OutcomeStats
fn default() -> OutcomeStats
[src]
fn default() -> OutcomeStats
Returns the "default value" for a type. Read more
impl PartialEq for OutcomeStats
[src]
impl PartialEq for OutcomeStats
fn eq(&self, other: &OutcomeStats) -> bool
[src]
fn eq(&self, other: &OutcomeStats) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &OutcomeStats) -> bool
[src]
fn ne(&self, other: &OutcomeStats) -> bool
This method tests for !=
.
impl<'a> From<&'a OutcomeStats> for RuleOutcome
[src]
impl<'a> From<&'a OutcomeStats> for RuleOutcome
fn from(stats: &'a OutcomeStats) -> Self
[src]
fn from(stats: &'a OutcomeStats) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for OutcomeStats
impl Send for OutcomeStats
impl Sync for OutcomeStats
impl Sync for OutcomeStats