#[non_exhaustive]pub struct Context {
pub module: &'static str,
pub name: &'static str,
pub description: Option<&'static str>,
pub case: Option<usize>,
pub start: Instant,
}
Expand description
A test context.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.module: &'static str
The complete module test path
name: &'static str
The test function name
description: Option<&'static str>
The test description if present
case: Option<usize>
The cardinal case number if it’s a test case
start: Instant
Start time
Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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