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
Source§fn clone(&self) -> ContextFrame
fn clone(&self) -> ContextFrame
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 moreAuto Trait Implementations§
impl Freeze 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