Enum ShouldPanic
enum ShouldPanic
Whether test is expected to panic or not
Variants
-
No -
Yes -
YesWithMessage(&'static str)
Implementations
impl Clone for ShouldPanic
fn clone(self: &Self) -> ShouldPanic
impl Copy for ShouldPanic
impl Debug for ShouldPanic
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for ShouldPanic
impl Freeze for ShouldPanic
impl Hash for ShouldPanic
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl PartialEq for ShouldPanic
fn eq(self: &Self, other: &ShouldPanic) -> bool
impl RefUnwindSafe for ShouldPanic
impl Send for ShouldPanic
impl StructuralPartialEq for ShouldPanic
impl Sync for ShouldPanic
impl Unpin for ShouldPanic
impl UnsafeUnpin for ShouldPanic
impl UnwindSafe for ShouldPanic
impl<T> Any for ShouldPanic
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ShouldPanic
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ShouldPanic
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for ShouldPanic
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for ShouldPanic
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ShouldPanic
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for ShouldPanic
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ShouldPanic
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ShouldPanic
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>