pub struct SelfTestReport {
pub passed: usize,
pub failed: usize,
pub outcomes: [TestOutcome; 64],
}Expand description
The outcome of a full self-test run.
Fields§
§passed: usizeHow many tests passed.
failed: usizeHow many failed.
outcomes: [TestOutcome; 64]Per-algorithm results, in table order.
Implementations§
Source§impl SelfTestReport
impl SelfTestReport
Sourcepub fn failures(&self) -> impl Iterator<Item = &TestOutcome>
pub fn failures(&self) -> impl Iterator<Item = &TestOutcome>
The algorithms whose tests failed.
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Whether every test passed.
Trait Implementations§
Source§impl Clone for SelfTestReport
impl Clone for SelfTestReport
Auto Trait Implementations§
impl Freeze for SelfTestReport
impl RefUnwindSafe for SelfTestReport
impl Send for SelfTestReport
impl Sync for SelfTestReport
impl Unpin for SelfTestReport
impl UnsafeUnpin for SelfTestReport
impl UnwindSafe for SelfTestReport
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