pub enum PanicExpectation {
Any,
Exact(Vec<Felt252>),
}Expand description
Expectation for a panic case.
Variants§
Any
Accept any panic value.
Exact(Vec<Felt252>)
Accept only a panic with this specific vector of felts.
Trait Implementations§
source§impl Clone for PanicExpectation
impl Clone for PanicExpectation
source§fn clone(&self) -> PanicExpectation
fn clone(&self) -> PanicExpectation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PanicExpectation
impl Debug for PanicExpectation
source§impl<'de> Deserialize<'de> for PanicExpectation
impl<'de> Deserialize<'de> for PanicExpectation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for PanicExpectation
impl PartialEq for PanicExpectation
source§fn eq(&self, other: &PanicExpectation) -> bool
fn eq(&self, other: &PanicExpectation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for PanicExpectation
impl Serialize for PanicExpectation
impl StructuralPartialEq for PanicExpectation
Auto Trait Implementations§
impl Freeze for PanicExpectation
impl RefUnwindSafe for PanicExpectation
impl Send for PanicExpectation
impl Sync for PanicExpectation
impl Unpin for PanicExpectation
impl UnwindSafe for PanicExpectation
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