Struct xpct::format::MismatchFormat
source · pub struct MismatchFormat<Actual, Expected> { /* private fields */ }
Expand description
Implementations§
source§impl<Actual, Expected> MismatchFormat<Actual, Expected>
impl<Actual, Expected> MismatchFormat<Actual, Expected>
sourcepub fn new(pos_msg: impl Into<String>, neg_msg: impl Into<String>) -> Self
pub fn new(pos_msg: impl Into<String>, neg_msg: impl Into<String>) -> Self
Create a new MismatchFormat
.
This accepts two error messages: the one to use in the positive case (when we were expecting the matcher to succeed) and the one to use in the negative case (when we were expecting the matcher to fail).
Trait Implementations§
Auto Trait Implementations§
impl<Actual, Expected> RefUnwindSafe for MismatchFormat<Actual, Expected>where Actual: RefUnwindSafe, Expected: RefUnwindSafe,
impl<Actual, Expected> Send for MismatchFormat<Actual, Expected>where Actual: Send, Expected: Send,
impl<Actual, Expected> Sync for MismatchFormat<Actual, Expected>where Actual: Sync, Expected: Sync,
impl<Actual, Expected> Unpin for MismatchFormat<Actual, Expected>where Actual: Unpin, Expected: Unpin,
impl<Actual, Expected> UnwindSafe for MismatchFormat<Actual, Expected>where Actual: UnwindSafe, Expected: 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