pub struct Any<'a, T: 'a> {
pub matcher: Box<dyn Matcher<'a, T> + 'a>,
pub next: Option<Box<Any<'a, T>>>,
}Expand description
A Matcher struct which joins multiple Matchers disjunctively.
Use of() to create a new Matcher and or() to add further Matchers.
#Examples
use galvanic_assert::matchers::*;
assert_that!(&(1+1), Any::of(lt(0)).or(gt(5)).or(not(eq(3))));Fields§
§matcher: Box<dyn Matcher<'a, T> + 'a>§next: Option<Box<Any<'a, T>>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Any<'a, T>
impl<'a, T> !RefUnwindSafe for Any<'a, T>
impl<'a, T> !Send for Any<'a, T>
impl<'a, T> !Sync for Any<'a, T>
impl<'a, T> Unpin for Any<'a, T>
impl<'a, T> !UnwindSafe for Any<'a, T>
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