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ยง
Sourceยงimpl Clone for ShouldPanic
impl Clone for ShouldPanic
Sourceยงfn clone(&self) -> ShouldPanic
fn clone(&self) -> ShouldPanic
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 moreimpl Copy for ShouldPanic
Sourceยงimpl Debug for ShouldPanic
impl Debug for ShouldPanic
impl Eq for ShouldPanic
Sourceยงimpl Hash for ShouldPanic
impl Hash for ShouldPanic
Sourceยงimpl PartialEq for ShouldPanic
impl PartialEq for ShouldPanic
Sourceยงfn eq(&self, other: &ShouldPanic) -> bool
fn eq(&self, other: &ShouldPanic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShouldPanic
Auto Trait Implementationsยง
impl Freeze for ShouldPanic
impl RefUnwindSafe for ShouldPanic
impl Send for ShouldPanic
impl Sync for ShouldPanic
impl Unpin for ShouldPanic
impl UnsafeUnpin for ShouldPanic
impl UnwindSafe for ShouldPanic
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