pub struct TestFailure {
pub file: Option<PathBuf>,
pub line: usize,
pub name: String,
pub msg: String,
}Expand description
One expectation of a test line that the name does not meet.
Fields§
§file: Option<PathBuf>The pattern file the line is in, where the set was declared from one.
line: usizeThe line’s number in its text, from one.
name: StringThe name under test.
msg: StringThe expectation and what happened instead.
Trait Implementations§
Source§impl Clone for TestFailure
impl Clone for TestFailure
Source§impl Debug for TestFailure
impl Debug for TestFailure
Source§impl Display for TestFailure
impl Display for TestFailure
impl Eq for TestFailure
Source§impl PartialEq for TestFailure
impl PartialEq for TestFailure
impl StructuralPartialEq for TestFailure
Auto Trait Implementations§
impl Freeze for TestFailure
impl RefUnwindSafe for TestFailure
impl Send for TestFailure
impl Sync for TestFailure
impl Unpin for TestFailure
impl UnsafeUnpin for TestFailure
impl UnwindSafe for TestFailure
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