pub struct Options {
pub display_output: bool,
pub panic_abort: bool,
}
🔬This is a nightly-only experimental API. (
test
)Expand description
调用者定义的测试运行的选项 (而不是 CLI 参数)。 如果我们还想添加其他选项,只需将其添加到此结构体中即可。
Fields§
§display_output: bool
🔬This is a nightly-only experimental API. (
§test
)panic_abort: bool
🔬This is a nightly-only experimental API. (
test
)Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
从拥有的值中借用。 Read more