Enum TestError
pub enum TestError<T>
A failure state from running test cases for a single test.
Variants
-
Abort(Reason) The test was aborted for the given reason, for example, due to too many inputs having been rejected.
-
Fail(Reason, T) A failing test case was found. The string indicates where and/or why the test failed. The
Tis the minimal input found to reproduce the failure.
Trait Implementations
impl<T: Clone> Clone for TestError<T>
fn clone(&self) -> TestError<T>
impl<T: Debug> Debug for TestError<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Debug> Display for TestError<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Debug> Error for TestError<T>
fn description(&self) -> &str
impl<T: Eq> Eq for TestError<T>
impl<T: PartialEq> PartialEq for TestError<T>
fn eq(&self, other: &TestError<T>) -> bool
impl<T: PartialEq> StructuralPartialEq for TestError<T>
Auto Trait Implementations
impl<T> Freeze for TestError<T>
where
T: Freeze,
impl<T> RefUnwindSafe for TestError<T>
where
T: RefUnwindSafe,
impl<T> Send for TestError<T>
where
T: Send,
impl<T> Sync for TestError<T>
where
T: Sync,
impl<T> Unpin for TestError<T>
where
T: Unpin,
impl<T> UnsafeUnpin for TestError<T>
where
T: UnsafeUnpin,
impl<T> UnwindSafe for TestError<T>
where
T: UnwindSafe,
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for TestError<T>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for TestError<T>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for TestError<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TestError<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TestError<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for TestError<T>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for TestError<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for TestError<T>
where
T: ?Sized,
impl<T> ToOwned for TestError<T>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for TestError<T>
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for TestError<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for TestError<T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for TestError<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for TestError<T>
where
V: MultiLane<T>,
fn vzip(self) -> V