pub enum ThrowMatcher {
Any,
Substring(String),
Regex(Regex),
ClassName(String),
Object(Value),
}Variants§
Any
Substring(String)
Regex(Regex)
ClassName(String)
Object(Value)
Match against { message?, name? }.
Trait Implementations§
Source§impl Clone for ThrowMatcher
impl Clone for ThrowMatcher
Source§fn clone(&self) -> ThrowMatcher
fn clone(&self) -> ThrowMatcher
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 moreAuto Trait Implementations§
impl Freeze for ThrowMatcher
impl RefUnwindSafe for ThrowMatcher
impl Send for ThrowMatcher
impl Sync for ThrowMatcher
impl Unpin for ThrowMatcher
impl UnsafeUnpin for ThrowMatcher
impl UnwindSafe for ThrowMatcher
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