Struct predicates_core::reflection::Case [−][src]
pub struct Case<'a> { /* fields omitted */ }A descriptive explanation for why a predicate failed.
Methods
impl<'a> Case<'a>[src]
impl<'a> Case<'a>pub fn new(predicate: Option<&'a PredicateReflection>, result: bool) -> Self[src]
pub fn new(predicate: Option<&'a PredicateReflection>, result: bool) -> SelfCreate a new Case describing the result of a Predicate.
pub fn add_product(self, product: Product) -> Self[src]
pub fn add_product(self, product: Product) -> SelfAdd an additional by product to a Case.
pub fn add_child(self, child: Case<'a>) -> Self[src]
pub fn add_child(self, child: Case<'a>) -> SelfAdd an additional by product to a Case.
pub fn predicate(&self) -> Option<&PredicateReflection>[src]
pub fn predicate(&self) -> Option<&PredicateReflection>The Predicate that produced this case.
pub fn result(&self) -> bool[src]
pub fn result(&self) -> boolThe result of this case.
ⓘImportant traits for CaseProducts<'a>pub fn products(&self) -> CaseProducts[src]
ⓘImportant traits for CaseProducts<'a>
pub fn products(&self) -> CaseProductsAccess the by-products from determining this case.
ⓘImportant traits for CaseChildren<'a>pub fn children(&self) -> CaseChildren[src]
ⓘImportant traits for CaseChildren<'a>
pub fn children(&self) -> CaseChildrenAccess the sub-cases.