pub enum TestResult<Panic = Box<dyn Any + Send>> {
Passed {
captured: Vec<CapturedOutput>,
exec_time: Duration,
},
Benchmarked {
captured: Vec<CapturedOutput>,
exec_time: Duration,
ns_iter_summ: Summary,
mb_s: usize,
},
Failed {
panic: Panic,
captured: Vec<CapturedOutput>,
exec_time: Duration,
},
Ignored {
captured: Vec<CapturedOutput>,
},
}
Variants§
Implementations§
Source§impl<Panic> TestResult<Panic>
impl<Panic> TestResult<Panic>
Source§impl TestResult<Box<dyn Any + Send>>
impl TestResult<Box<dyn Any + Send>>
pub fn clone(&self) -> TestResult<String>
Auto Trait Implementations§
impl<Panic> Freeze for TestResult<Panic>where
Panic: Freeze,
impl<Panic> RefUnwindSafe for TestResult<Panic>where
Panic: RefUnwindSafe,
impl<Panic> Send for TestResult<Panic>where
Panic: Send,
impl<Panic> Sync for TestResult<Panic>where
Panic: Sync,
impl<Panic> Unpin for TestResult<Panic>where
Panic: Unpin,
impl<Panic> UnwindSafe for TestResult<Panic>where
Panic: UnwindSafe,
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