pub struct Expectation {
pub form: usize,
pub result: String,
}Expand description
One declared expectation, turning a recipe into a generated test.
After running the recipe’s setup, the encoded result of form form
(0-based) must equal result (encoded in the recipe’s codec).
Fields§
§form: usizeIndex of the setup form whose result is checked.
result: StringExpected encoded result, in the recipe’s codec.
Trait Implementations§
Source§impl Clone for Expectation
impl Clone for Expectation
Source§fn clone(&self) -> Expectation
fn clone(&self) -> Expectation
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 moreSource§impl Debug for Expectation
impl Debug for Expectation
impl Eq for Expectation
Source§impl PartialEq for Expectation
impl PartialEq for Expectation
Source§fn eq(&self, other: &Expectation) -> bool
fn eq(&self, other: &Expectation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq 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 UnsafeUnpin 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