pub enum Expectation {
Failed {
assertion: String,
file: String,
line: u32,
error_msg: String,
},
Satisfied,
}
Expand description
The result of a deferred assertion.
Variants§
Implementations§
Source§impl Expectation
impl Expectation
Sourcepub fn failed(
assertion: String,
file: String,
line: u32,
error_msg: String,
) -> Expectation
pub fn failed( assertion: String, file: String, line: u32, error_msg: String, ) -> Expectation
Creates a failed Expectation
Sourcepub fn satisfied() -> Expectation
pub fn satisfied() -> Expectation
Create a satisfied Expectation
Trait Implementations§
Source§impl Display for Expectation
impl Display for Expectation
Auto Trait Implementations§
impl Freeze for Expectation
impl RefUnwindSafe for Expectation
impl Send for Expectation
impl Sync for Expectation
impl Unpin for Expectation
impl UnwindSafe for Expectation
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