#[non_exhaustive]pub enum RuleOutcome {
Violated,
Indeterminate,
NotEvaluated(NotEvaluated),
}Expand description
What evaluating a rule on one instance, value or file concluded.
A satisfied rule produces no finding, so there is no variant for it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Violated
The rule evaluated to FALSE.
Indeterminate
The rule evaluated to UNKNOWN or indeterminate (?). ISO 10303-11
does not count that as a violation; it is reported so a reader knows
the data could not decide the rule.
NotEvaluated(NotEvaluated)
The rule could not be evaluated.
Trait Implementations§
Source§impl Clone for RuleOutcome
impl Clone for RuleOutcome
Source§fn clone(&self) -> RuleOutcome
fn clone(&self) -> RuleOutcome
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 RuleOutcome
impl Debug for RuleOutcome
impl Eq for RuleOutcome
Source§impl PartialEq for RuleOutcome
impl PartialEq for RuleOutcome
impl StructuralPartialEq for RuleOutcome
Auto Trait Implementations§
impl Freeze for RuleOutcome
impl RefUnwindSafe for RuleOutcome
impl Send for RuleOutcome
impl Sync for RuleOutcome
impl Unpin for RuleOutcome
impl UnsafeUnpin for RuleOutcome
impl UnwindSafe for RuleOutcome
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