Enum cargo_culture_kit::rules::RuleOutcome[][src]

pub enum RuleOutcome {
    Success,
    Failure,
    Undetermined,
}

The result of a Rule.evaluate call.

Currently represented as a tri-valued flat enum rather than a Result<bool, Error> to reduce the temptation to use a fancy error management scheme. This is also to bring attention to 3rd party implementers that a RuleOutcome::Failure is not an anomalous situation from the operational standpoint of a Rule evaluation, and is distinct from a RuleOutcome:: Undetermined value.

Variants

The Rule's description is definitely true for this project

The Rule's description definitely is not upheld for this project

Something went wrong in the process of determining whether the Rule was upheld or not for this project. Let's admit that we don't know for sure one way or the other.

Trait Implementations

impl ExitCode for RuleOutcome
[src]

The

impl Clone for RuleOutcome
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RuleOutcome
[src]

Formats the value using the given formatter. Read more

impl PartialEq for RuleOutcome
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl IsSuccess for RuleOutcome
[src]

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

Panic if is_success() returns false for this instance

impl<T> From<T> for RuleOutcome where
    T: Borrow<OutcomesByDescription>, 
[src]

Performs the conversion.

impl<'a> From<&'a OutcomeStats> for RuleOutcome
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for RuleOutcome

impl Sync for RuleOutcome