pub struct Case {
pub name: &'static str,
pub why: &'static str,
pub expected: Option<Invariant>,
pub subject: Subject,
}Expand description
One case, and what the guard is supposed to say about it.
Fields§
§name: &'static strWhat the case is called, in prose.
why: &'static strWhy it is in the corpus, which is usually a decoder bug it stands in for.
expected: Option<Invariant>The rule it should break, or None if the guard has to accept it.
subject: SubjectThe thing to run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Case
impl RefUnwindSafe for Case
impl Send for Case
impl Sync for Case
impl Unpin for Case
impl UnsafeUnpin for Case
impl UnwindSafe for Case
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