Struct xpct::matchers::map::IterTryMapMatcher
source · 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>
impl<'a, In, Out, IntoIter> IterTryMapMatcher<'a, In, Out, IntoIter>
sourcepub fn new(func: impl Fn(In) -> Result<Out> + 'a) -> Self
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>
impl<'a, In, Out, IntoIter> Debug for IterTryMapMatcher<'a, In, Out, IntoIter>
source§impl<'a, In, Out, IntoIter> TransformMatch for IterTryMapMatcher<'a, In, Out, IntoIter>where
IntoIter: IntoIterator<Item = In> + 'a,
impl<'a, In, Out, IntoIter> TransformMatch for IterTryMapMatcher<'a, In, Out, IntoIter>where IntoIter: IntoIterator<Item = In> + 'a,
§type PosOut = Vec<Out, Global>
type PosOut = Vec<Out, Global>
The output type of the matcher that is passed to subsequent matchers in the chain. Read more
§type PosFail = Infallible
type PosFail = Infallible
The failure output that is passed to the formatter. Read more
§type NegFail = Infallible
type NegFail = Infallible
The failure output of the matcher 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> 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