pub enum Fact {
KeyValue {
key: String,
value: String,
},
KeyValues {
key: String,
values: Vec<String>,
},
Value {
value: String,
},
Splitter,
}
Expand description
A piece of assertion message.
§Design discussion
- New entry for having elements?
KeyValues {key: String, value: Vec<String>}
- New entry for comparing elements?
Comparison {key: String, actual: Vec<String>, expected: Vec<String>}
Variants§
KeyValue
Keyed assertion message
§Example
Fact {key: "expected", value: "foo"}
Fact {key: "actual", value: "var"}
KeyValues
Keyed assertion message for multiple values
§Example
Fact {key: "expected", values: vec!["foo", "bar"]}
Value
Splitter
Splitter
Implementations§
Trait Implementations§
impl Eq for Fact
impl StructuralPartialEq for Fact
Auto Trait Implementations§
impl Freeze for Fact
impl RefUnwindSafe for Fact
impl Send for Fact
impl Sync for Fact
impl Unpin for Fact
impl UnwindSafe for Fact
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)