pub struct ConformanceReport {
pub outcomes: Vec<CheckOutcome>,
}Expand description
The result of a whole run_all.
Display renders one line per check, so assert!(report.passed(), "{report}")
prints a usable diagnosis.
Fields§
§outcomes: Vec<CheckOutcome>Every check, in the order run_all ran them.
Implementations§
Source§impl ConformanceReport
impl ConformanceReport
Sourcepub fn failures(&self) -> impl Iterator<Item = &ConformanceFailure>
pub fn failures(&self) -> impl Iterator<Item = &ConformanceFailure>
Every failure, in run order.
Sourcepub fn into_result(self) -> Result<(), ConformanceFailure>
pub fn into_result(self) -> Result<(), ConformanceFailure>
Turns the report into a Result, keeping the first failure.
§Errors
- The first
ConformanceFailurein run order.
Trait Implementations§
Source§impl Clone for ConformanceReport
impl Clone for ConformanceReport
Source§impl Debug for ConformanceReport
impl Debug for ConformanceReport
Source§impl Display for ConformanceReport
impl Display for ConformanceReport
impl Eq for ConformanceReport
Source§impl PartialEq for ConformanceReport
impl PartialEq for ConformanceReport
impl StructuralPartialEq for ConformanceReport
Auto Trait Implementations§
impl Freeze for ConformanceReport
impl RefUnwindSafe for ConformanceReport
impl Send for ConformanceReport
impl Sync for ConformanceReport
impl Unpin for ConformanceReport
impl UnsafeUnpin for ConformanceReport
impl UnwindSafe for ConformanceReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.