pub struct TestResult<T, E> { /* private fields */ }Implementations§
Source§impl<T, E> TestResult<T, E>
impl<T, E> TestResult<T, E>
pub fn new(result: Result<T, E>) -> TestResult<T, E>
pub fn with_context(self, context: &str) -> TestResult<T, E>
pub fn assert_success(self) -> T
pub fn assert_success_is<Exp>(self, expected: Exp) -> T
pub fn assert_success_with<F>(self, f: F) -> T
pub fn assert_success_debug(self, expected_debug: &str) -> T
pub fn assert_failure(self) -> E
pub fn assert_failure_contains(self, expected_msg_part: &str)
pub fn assert_success_contains(self, expected_part: &str) -> Twhere
T: Display,
Auto Trait Implementations§
impl<T, E> Freeze for TestResult<T, E>
impl<T, E> RefUnwindSafe for TestResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for TestResult<T, E>
impl<T, E> Sync for TestResult<T, E>
impl<T, E> Unpin for TestResult<T, E>
impl<T, E> UnwindSafe for TestResult<T, E>where
T: UnwindSafe,
E: UnwindSafe,
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