pub trait TestOutcome: Format + Sealed {
    // Required method
    fn is_success(&self) -> bool;
}
Expand description

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§

source

fn is_success(&self) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TestOutcome for ()

source§

impl<T: Format, E: Format> TestOutcome for Result<T, E>

Implementors§