pub struct PropertyFailure<T> {
pub original: T,
pub shrunk: T,
pub failure: TestError,
pub cases: u32,
}Expand description
A property that did not hold.
It carries the counterexample twice: original is the first generated
input that failed, shrunk is the minimal failing input the shrink search
reached. failure is the TestError the shrunk input produced, and
cases is how many inputs ran (including the failing one) before shrinking
began.
Fields§
§original: TThe first generated input that failed the property.
shrunk: TThe minimal failing input the shrink search reached.
failure: TestErrorThe failure produced by shrunk.
cases: u32How many cases ran (including the failing one) before shrinking began.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for PropertyFailure<T>where
T: Freeze,
impl<T> !RefUnwindSafe for PropertyFailure<T>
impl<T> Send for PropertyFailure<T>where
T: Send,
impl<T> Sync for PropertyFailure<T>where
T: Sync,
impl<T> Unpin for PropertyFailure<T>where
T: Unpin,
impl<T> UnsafeUnpin for PropertyFailure<T>where
T: UnsafeUnpin,
impl<T> !UnwindSafe for PropertyFailure<T>
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