Struct xpct::matchers::result::BeOkMatcher
source · pub struct BeOkMatcher<T, E> { /* private fields */ }
Implementations§
source§impl<T, E> BeOkMatcher<T, E>
impl<T, E> BeOkMatcher<T, E>
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new BeOkMatcher
.
Trait Implementations§
source§impl<T, E> Default for BeOkMatcher<T, E>
impl<T, E> Default for BeOkMatcher<T, E>
source§impl<T, E> TransformMatch for BeOkMatcher<T, E>
impl<T, E> TransformMatch for BeOkMatcher<T, E>
§type PosOut = T
type PosOut = T
The output type of the matcher that is passed to subsequent matchers in the chain. Read more
§type PosFail = Expectation<Result<T, E>>
type PosFail = Expectation<Result<T, E>>
The failure output that is passed to the formatter. Read more
§type NegFail = Expectation<Result<T, E>>
type NegFail = Expectation<Result<T, E>>
The failure output of the matcher in the negative case. Read more
Auto Trait Implementations§
impl<T, E> RefUnwindSafe for BeOkMatcher<T, E>where E: RefUnwindSafe, T: RefUnwindSafe,
impl<T, E> Send for BeOkMatcher<T, E>where E: Send, T: Send,
impl<T, E> Sync for BeOkMatcher<T, E>where E: Sync, T: Sync,
impl<T, E> Unpin for BeOkMatcher<T, E>where E: Unpin, T: Unpin,
impl<T, E> UnwindSafe for BeOkMatcher<T, E>where E: UnwindSafe, T: 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