pub struct DecisionChain { /* private fields */ }Expand description
A sequential chain of decisions where each step can depend on the previous.
Implementations§
Source§impl DecisionChain
impl DecisionChain
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Whether all steps passed.
Sourcepub fn first_failure(&self) -> Option<&str>
pub fn first_failure(&self) -> Option<&str>
The first failing step, if any.
Sourcepub fn passed_count(&self) -> usize
pub fn passed_count(&self) -> usize
Count passing steps.
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Count failing steps.
Trait Implementations§
Source§impl Clone for DecisionChain
impl Clone for DecisionChain
Source§fn clone(&self) -> DecisionChain
fn clone(&self) -> DecisionChain
Returns a duplicate of the value. Read more
1.0.0 · 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 DecisionChain
impl Debug for DecisionChain
Auto Trait Implementations§
impl Freeze for DecisionChain
impl RefUnwindSafe for DecisionChain
impl Send for DecisionChain
impl Sync for DecisionChain
impl Unpin for DecisionChain
impl UnsafeUnpin for DecisionChain
impl UnwindSafe for DecisionChain
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