pub struct TestCaseData<I, O> {
pub name: String,
pub input: I,
pub expected: O,
}Expand description
Generic test case data without execution behavior.
Fields§
§name: String§input: I§expected: OImplementations§
Trait Implementations§
Source§impl<I: Clone, O: Clone> Clone for TestCaseData<I, O>
impl<I: Clone, O: Clone> Clone for TestCaseData<I, O>
Source§fn clone(&self) -> TestCaseData<I, O>
fn clone(&self) -> TestCaseData<I, O>
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<I: PartialEq, O: PartialEq> PartialEq for TestCaseData<I, O>
impl<I: PartialEq, O: PartialEq> PartialEq for TestCaseData<I, O>
Source§fn eq(&self, other: &TestCaseData<I, O>) -> bool
fn eq(&self, other: &TestCaseData<I, O>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<I: Eq, O: Eq> Eq for TestCaseData<I, O>
impl<I, O> StructuralPartialEq for TestCaseData<I, O>
Auto Trait Implementations§
impl<I, O> Freeze for TestCaseData<I, O>
impl<I, O> RefUnwindSafe for TestCaseData<I, O>where
I: RefUnwindSafe,
O: RefUnwindSafe,
impl<I, O> Send for TestCaseData<I, O>
impl<I, O> Sync for TestCaseData<I, O>
impl<I, O> Unpin for TestCaseData<I, O>
impl<I, O> UnsafeUnpin for TestCaseData<I, O>where
I: UnsafeUnpin,
O: UnsafeUnpin,
impl<I, O> UnwindSafe for TestCaseData<I, O>where
I: UnwindSafe,
O: UnwindSafe,
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