Enum test::ShouldPanic [−][src]
pub enum ShouldPanic {
No,
Yes,
YesWithMessage(&'static str),
}
🔬 This is a nightly-only experimental API. (
test
)Expand description
Whether test is expected to panic or not
Variants
🔬 This is a nightly-only experimental API. (
test
)🔬 This is a nightly-only experimental API. (
test
)YesWithMessage(&'static str)
🔬 This is a nightly-only experimental API. (
test
)Tuple Fields of YesWithMessage
0: &'static str
🔬 This is a nightly-only experimental API. (
test
)Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ShouldPanic
impl Send for ShouldPanic
impl Sync for ShouldPanic
impl Unpin for ShouldPanic
impl UnwindSafe for ShouldPanic
Blanket Implementations
Mutably borrows from an owned value. Read more