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
impl Clone for ShouldPanic
source
impl Clone for ShouldPanic
sourcefn clone(&self) -> ShouldPanic
source
fn clone(&self) -> ShouldPanic
sourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0 · source
fn clone_from(&mut self, source: &Self)
1.0.0 · sourcePerforms copy-assignment from source. Read more
impl Debug for ShouldPanic
source
impl Debug for ShouldPanic
sourceimpl Hash for ShouldPanic
source
impl Hash for ShouldPanic
sourceimpl PartialEq<ShouldPanic> for ShouldPanic
source
impl PartialEq<ShouldPanic> for ShouldPanic
sourcefn eq(&self, other: &ShouldPanic) -> bool
source
fn eq(&self, other: &ShouldPanic) -> bool
sourceThis method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &ShouldPanic) -> bool
source
fn ne(&self, other: &ShouldPanic) -> bool
sourceThis method tests for !=.
impl Copy for ShouldPanic
sourceimpl Eq for ShouldPanic
sourceimpl StructuralEq for ShouldPanic
sourceimpl StructuralPartialEq for ShouldPanic
sourceAuto Trait Implementations
impl RefUnwindSafe for ShouldPanic
impl Send for ShouldPanic
impl Sync for ShouldPanic
impl Unpin for ShouldPanic
impl UnwindSafe for ShouldPanic
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
source🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more