Struct xpct::matchers::collections::ContainElementsMatcher
source · pub struct ContainElementsMatcher<T, Expected> { /* private fields */ }
Expand description
The matcher for contain_element
and contain_elements
.
Implementations§
source§impl<T, Expected> ContainElementsMatcher<T, Expected>
impl<T, Expected> ContainElementsMatcher<T, Expected>
sourcepub fn new(elements: Expected) -> Self
pub fn new(elements: Expected) -> Self
Create a new ContainElementsMatcher
from the expected elements.
Trait Implementations§
source§impl<T, Expected, Actual> Match<Actual> for ContainElementsMatcher<T, Expected>where
Actual: Contains<T>,
Expected: IntoIterator + Clone,
Expected::Item: Borrow<T>,
impl<T, Expected, Actual> Match<Actual> for ContainElementsMatcher<T, Expected>where Actual: Contains<T>, Expected: IntoIterator + Clone, Expected::Item: Borrow<T>,
Auto Trait Implementations§
impl<T, Expected> RefUnwindSafe for ContainElementsMatcher<T, Expected>where Expected: RefUnwindSafe, T: RefUnwindSafe,
impl<T, Expected> Send for ContainElementsMatcher<T, Expected>where Expected: Send, T: Send,
impl<T, Expected> Sync for ContainElementsMatcher<T, Expected>where Expected: Sync, T: Sync,
impl<T, Expected> Unpin for ContainElementsMatcher<T, Expected>where Expected: Unpin, T: Unpin,
impl<T, Expected> UnwindSafe for ContainElementsMatcher<T, Expected>where Expected: UnwindSafe, T: UnwindSafe,
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