Skip to main content

ContainerContainsUnorderedMatcher

Struct ContainerContainsUnorderedMatcher 

Source
pub struct ContainerContainsUnorderedMatcher<'matchers, ContainerT: ?Sized, T: Debug, ModeT> { /* private fields */ }
Expand description

Matches elements of an iterable collection with a sequence of matchers, in any order.

This struct is meant to be used only through the contains_exactly![...] macro.

Implementations§

Source§

impl<'matchers, ContainerT: ?Sized, T: Debug, ModeT> ContainerContainsUnorderedMatcher<'matchers, ContainerT, T, ModeT>

Source

pub fn in_order( self, ) -> ContainerContainsOrderedMatcher<'matchers, ContainerT, T, ModeT>

Asserts that the matchers must match the elements of the collection in the same order as they appear when iterating.

Trait Implementations§

Source§

impl<'matchers, T: Debug, ContainerT: ?Sized, ModeT> Describable for ContainerContainsUnorderedMatcher<'matchers, ContainerT, T, ModeT>

Source§

fn describe(&self, matcher_result: MatcherResult) -> Description

Returns a description of self or a negative description if matcher_result is DoesNotMatch. Read more

Auto Trait Implementations§

§

impl<'matchers, ContainerT, T, ModeT> !RefUnwindSafe for ContainerContainsUnorderedMatcher<'matchers, ContainerT, T, ModeT>

§

impl<'matchers, ContainerT, T, ModeT> !Send for ContainerContainsUnorderedMatcher<'matchers, ContainerT, T, ModeT>

§

impl<'matchers, ContainerT, T, ModeT> !Sync for ContainerContainsUnorderedMatcher<'matchers, ContainerT, T, ModeT>

§

impl<'matchers, ContainerT, T, ModeT> !UnwindSafe for ContainerContainsUnorderedMatcher<'matchers, ContainerT, T, ModeT>

§

impl<'matchers, ContainerT, T, ModeT> Freeze for ContainerContainsUnorderedMatcher<'matchers, ContainerT, T, ModeT>
where ContainerT: ?Sized,

§

impl<'matchers, ContainerT, T, ModeT> Unpin for ContainerContainsUnorderedMatcher<'matchers, ContainerT, T, ModeT>
where ModeT: Unpin, ContainerT: ?Sized,

§

impl<'matchers, ContainerT, T, ModeT> UnsafeUnpin for ContainerContainsUnorderedMatcher<'matchers, ContainerT, T, ModeT>
where ContainerT: ?Sized,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<M> MatcherExt for M

Source§

fn and<Right>(self, right: Right) -> ConjunctionMatcher<Self, Right>

Constructs a matcher that matches both self and right. Read more
Source§

fn or<Right>(self, right: Right) -> DisjunctionMatcher<Self, Right>

Constructs a matcher that matches when at least one of self or right matches the input. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V