pub struct Rule<M: ?Sized> {
pub name: String,
pub apply: fn(&mut M, TestCase),
}Expand description
A rule that can be applied to the state machine during testing.
Fields§
§name: String§apply: fn(&mut M, TestCase)Implementations§
Auto Trait Implementations§
impl<M> Freeze for Rule<M>where
M: ?Sized,
impl<M> RefUnwindSafe for Rule<M>where
M: ?Sized,
impl<M> Send for Rule<M>where
M: ?Sized,
impl<M> Sync for Rule<M>where
M: ?Sized,
impl<M> Unpin for Rule<M>where
M: ?Sized,
impl<M> UnsafeUnpin for Rule<M>where
M: ?Sized,
impl<M> UnwindSafe for Rule<M>where
M: ?Sized,
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