Skip to main content

ContainsAll

Trait ContainsAll 

Source
pub trait ContainsAll<Item> {
    // Required methods
    fn first_unsatisfied(&self, items: &[&Item]) -> Option<Description>;
    fn describe(&self) -> Description;
}
Expand description

A tuple of matchers, all over the same Item, for contains_all.

Implemented for tuples of arity 2 through 8 by a macro in this module; you do not implement it yourself.

Required Methods§

Source

fn first_unsatisfied(&self, items: &[&Item]) -> Option<Description>

The description of the first matcher that no item in items satisfies, or None if every matcher is satisfied.

Source

fn describe(&self) -> Description

The conjunction (a and b and ...) of the tuple’s descriptions.

Implementations on Foreign Types§

Source§

impl<Item, M1, M2> ContainsAll<Item> for (M1, M2)
where M1: Matcher<Item>, M2: Matcher<Item>,

Source§

impl<Item, M1, M2, M3> ContainsAll<Item> for (M1, M2, M3)
where M1: Matcher<Item>, M2: Matcher<Item>, M3: Matcher<Item>,

Source§

impl<Item, M1, M2, M3, M4> ContainsAll<Item> for (M1, M2, M3, M4)
where M1: Matcher<Item>, M2: Matcher<Item>, M3: Matcher<Item>, M4: Matcher<Item>,

Source§

impl<Item, M1, M2, M3, M4, M5> ContainsAll<Item> for (M1, M2, M3, M4, M5)
where M1: Matcher<Item>, M2: Matcher<Item>, M3: Matcher<Item>, M4: Matcher<Item>, M5: Matcher<Item>,

Source§

impl<Item, M1, M2, M3, M4, M5, M6> ContainsAll<Item> for (M1, M2, M3, M4, M5, M6)
where M1: Matcher<Item>, M2: Matcher<Item>, M3: Matcher<Item>, M4: Matcher<Item>, M5: Matcher<Item>, M6: Matcher<Item>,

Source§

impl<Item, M1, M2, M3, M4, M5, M6, M7> ContainsAll<Item> for (M1, M2, M3, M4, M5, M6, M7)
where M1: Matcher<Item>, M2: Matcher<Item>, M3: Matcher<Item>, M4: Matcher<Item>, M5: Matcher<Item>, M6: Matcher<Item>, M7: Matcher<Item>,

Source§

impl<Item, M1, M2, M3, M4, M5, M6, M7, M8> ContainsAll<Item> for (M1, M2, M3, M4, M5, M6, M7, M8)
where M1: Matcher<Item>, M2: Matcher<Item>, M3: Matcher<Item>, M4: Matcher<Item>, M5: Matcher<Item>, M6: Matcher<Item>, M7: Matcher<Item>, M8: Matcher<Item>,

Implementors§