Enum test::ShouldPanic
source · [−]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
No
🔬 This is a nightly-only experimental API. (
test
)Yes
🔬 This is a nightly-only experimental API. (
test
)YesWithMessage(&'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