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 error tree or chain and all captured caller locations.
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