pub struct IterTryMapMatcher<'a, In, Out, IntoIter> { /* private fields */ }
Expand description

The matcher for iter_try_map.

Implementations§

source§

impl<'a, In, Out, IntoIter> IterTryMapMatcher<'a, In, Out, IntoIter>

source

pub fn new(func: impl Fn(In) -> Result<Out> + 'a) -> Self

Create a new IterTryMapMatcher.

Trait Implementations§

source§

impl<'a, In, Out, IntoIter> Debug for IterTryMapMatcher<'a, In, Out, IntoIter>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, In, Out, IntoIter> TransformMatch for IterTryMapMatcher<'a, In, Out, IntoIter>where IntoIter: IntoIterator<Item = In> + 'a,

§

type In = IntoIter

The type of the “actual” value passed into the matcher by expect!.
§

type PosOut = Vec<Out, Global>

The output type of the matcher that is passed to subsequent matchers in the chain. Read more
§

type NegOut = Vec<Out, Global>

The output type of the matcher in the negative case. Read more
§

type PosFail = Infallible

The failure output that is passed to the formatter. Read more
§

type NegFail = Infallible

The failure output of the matcher in the negative case. Read more
source§

fn match_pos( self, actual: Self::In ) -> Result<MatchOutcome<Self::PosOut, Self::PosFail>>

The function called to test whether a value matches. Read more
source§

fn match_neg( self, actual: Self::In ) -> Result<MatchOutcome<Self::NegOut, Self::NegFail>>

The function called to test whether a value matches in the negative case. Read more

Auto Trait Implementations§

§

impl<'a, In, Out, IntoIter> !RefUnwindSafe for IterTryMapMatcher<'a, In, Out, IntoIter>

§

impl<'a, In, Out, IntoIter> !Send for IterTryMapMatcher<'a, In, Out, IntoIter>

§

impl<'a, In, Out, IntoIter> !Sync for IterTryMapMatcher<'a, In, Out, IntoIter>

§

impl<'a, In, Out, IntoIter> Unpin for IterTryMapMatcher<'a, In, Out, IntoIter>where IntoIter: Unpin,

§

impl<'a, In, Out, IntoIter> !UnwindSafe for IterTryMapMatcher<'a, In, Out, IntoIter>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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<T, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.