pub struct ContextFrame {
pub message: Cow<'static, str>,
pub location: Option<&'static Location<'static>>,
}Expand description
One human-readable frame in a TestError’s context chain.
Frames render in the order they were added, so the chain reads from the outermost circumstance to the innermost.
Fields§
§message: Cow<'static, str>The “while doing X” description.
location: Option<&'static Location<'static>>Where the frame was attached, when known.
Implementations§
Trait Implementations§
Source§impl Clone for ContextFrame
impl Clone for ContextFrame
Auto Trait Implementations§
impl Forget for ContextFrame
impl Freeze for ContextFrame
impl Move for ContextFrame
impl RefUnwindSafe for ContextFrame
impl Send for ContextFrame
impl Sync for ContextFrame
impl Unpin for ContextFrame
impl UnsafeUnpin for ContextFrame
impl UnwindSafe for ContextFrame
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