pub struct TestError(/* private fields */);Expand description
An error for test functions that accepts any error supported by a boxed standard error.
Unlike Error, this type deliberately does not implement std::error::Error. This allows it to accept arbitrary
errors via From without conflicting with the standard library’s identity conversion.
Its Debug output includes the complete diagnostic tree or chain, omitting classification markers
unless only markers are available. Custom I/O wrappers show their kind, with their payloads reported separately.
Captured caller locations are included unless alternate formatting is used.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TestError
impl !UnwindSafe for TestError
impl Freeze for TestError
impl Send for TestError
impl Sync for TestError
impl Unpin for TestError
impl UnsafeUnpin for TestError
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