pub struct TestFunction {
pub name: String,
pub body: Vec<Statement>,
pub should_fail: Option<String>,
}Expand description
A test function
Fields§
§name: String§body: Vec<Statement>§should_fail: Option<String>Expected error message for #[should_fail(“…”)] tests
Trait Implementations§
Source§impl Clone for TestFunction
impl Clone for TestFunction
Source§fn clone(&self) -> TestFunction
fn clone(&self) -> TestFunction
Returns a duplicate of the value. Read more
1.0.0 · 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 TestFunction
impl RefUnwindSafe for TestFunction
impl Send for TestFunction
impl Sync for TestFunction
impl Unpin for TestFunction
impl UnwindSafe for TestFunction
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