pub enum ExpectedFail {
All,
Variants(Vec<ExpectedFailKey>),
}Expand description
Describes how an assertion is expected to fail.
Variants§
All
The entire assertion is expected to fail: #[expected_fail].
Variants(Vec<ExpectedFailKey>)
Specific index keys are expected to fail: #[expected_fail(Index.Variant, ...)].
Trait Implementations§
Source§impl Clone for ExpectedFail
impl Clone for ExpectedFail
Source§fn clone(&self) -> ExpectedFail
fn clone(&self) -> ExpectedFail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExpectedFail
impl RefUnwindSafe for ExpectedFail
impl Send for ExpectedFail
impl Sync for ExpectedFail
impl Unpin for ExpectedFail
impl UnsafeUnpin for ExpectedFail
impl UnwindSafe for ExpectedFail
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