Trait defmt_test::TestOutcome [−][src]
pub trait TestOutcome: Format + Sealed { fn is_success(&self) -> bool; }
Indicates whether a test succeeded or failed.
This is comparable to the Termination trait in libstd, except stable and tailored towards the
needs of defmt-test. It is implemented for (), which always indicates success, and Result,
where Ok indicates success.
Required methods
fn is_success(&self) -> bool[src]
Implementations on Foreign Types
impl<T: Format, E: Format> TestOutcome for Result<T, E>[src]
impl<T: Format, E: Format> TestOutcome for Result<T, E>[src]fn is_success(&self) -> bool[src]
Implementors
impl TestOutcome for ()[src]
impl TestOutcome for ()[src]