pub struct Matcher<I>(/* private fields */);
Expand description
An enum describes what arguments are expected
Trait Implementations§
Source§impl<Arg1: Send + 'static> From<(ArgMatcher<Arg1>,)> for Matcher<(Arg1,)>
impl<Arg1: Send + 'static> From<(ArgMatcher<Arg1>,)> for Matcher<(Arg1,)>
Source§fn from((arg1): (ArgMatcher<Arg1>,)) -> Self
fn from((arg1): (ArgMatcher<Arg1>,)) -> Self
Converts to this type from the input type.
Source§impl<Arg1: Send + 'static, Arg2: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>)> for Matcher<(Arg1, Arg2)>
impl<Arg1: Send + 'static, Arg2: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>)> for Matcher<(Arg1, Arg2)>
Source§fn from((arg1, arg2): (ArgMatcher<Arg1>, ArgMatcher<Arg2>)) -> Self
fn from((arg1, arg2): (ArgMatcher<Arg1>, ArgMatcher<Arg2>)) -> Self
Converts to this type from the input type.
Source§impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>)> for Matcher<(Arg1, Arg2, Arg3)>
impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>)> for Matcher<(Arg1, Arg2, Arg3)>
Source§fn from(
(arg1, arg2, arg3): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>),
) -> Self
fn from( (arg1, arg2, arg3): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>), ) -> Self
Converts to this type from the input type.
Source§impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>)> for Matcher<(Arg1, Arg2, Arg3, Arg4)>
impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>)> for Matcher<(Arg1, Arg2, Arg3, Arg4)>
Source§fn from(
(arg1, arg2, arg3, arg4): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>),
) -> Self
fn from( (arg1, arg2, arg3, arg4): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>), ) -> Self
Converts to this type from the input type.
Source§impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5)>
impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5)>
Source§fn from(
(arg1, arg2, arg3, arg4, arg5): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>),
) -> Self
fn from( (arg1, arg2, arg3, arg4, arg5): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>), ) -> Self
Converts to this type from the input type.
Source§impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static, Arg6: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6)>
impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static, Arg6: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6)>
Source§fn from(
(arg1, arg2, arg3, arg4, arg5, arg6): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>),
) -> Self
fn from( (arg1, arg2, arg3, arg4, arg5, arg6): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>), ) -> Self
Converts to this type from the input type.
Source§impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static, Arg6: Send + 'static, Arg7: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7)>
impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static, Arg6: Send + 'static, Arg7: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7)>
Source§fn from(
(arg1, arg2, arg3, arg4, arg5, arg6, arg7): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>),
) -> Self
fn from( (arg1, arg2, arg3, arg4, arg5, arg6, arg7): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>), ) -> Self
Converts to this type from the input type.
Source§impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static, Arg6: Send + 'static, Arg7: Send + 'static, Arg8: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8)>
impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static, Arg6: Send + 'static, Arg7: Send + 'static, Arg8: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8)>
Source§fn from(
(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>),
) -> Self
fn from( (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>), ) -> Self
Converts to this type from the input type.
Source§impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static, Arg6: Send + 'static, Arg7: Send + 'static, Arg8: Send + 'static, Arg9: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>, ArgMatcher<Arg9>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9)>
impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static, Arg6: Send + 'static, Arg7: Send + 'static, Arg8: Send + 'static, Arg9: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>, ArgMatcher<Arg9>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9)>
Source§fn from(
(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>, ArgMatcher<Arg9>),
) -> Self
fn from( (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>, ArgMatcher<Arg9>), ) -> Self
Converts to this type from the input type.
Source§impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static, Arg6: Send + 'static, Arg7: Send + 'static, Arg8: Send + 'static, Arg9: Send + 'static, Arg10: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>, ArgMatcher<Arg9>, ArgMatcher<Arg10>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10)>
impl<Arg1: Send + 'static, Arg2: Send + 'static, Arg3: Send + 'static, Arg4: Send + 'static, Arg5: Send + 'static, Arg6: Send + 'static, Arg7: Send + 'static, Arg8: Send + 'static, Arg9: Send + 'static, Arg10: Send + 'static> From<(ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>, ArgMatcher<Arg9>, ArgMatcher<Arg10>)> for Matcher<(Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10)>
Source§fn from(
(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>, ArgMatcher<Arg9>, ArgMatcher<Arg10>),
) -> Self
fn from( (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10): (ArgMatcher<Arg1>, ArgMatcher<Arg2>, ArgMatcher<Arg3>, ArgMatcher<Arg4>, ArgMatcher<Arg5>, ArgMatcher<Arg6>, ArgMatcher<Arg7>, ArgMatcher<Arg8>, ArgMatcher<Arg9>, ArgMatcher<Arg10>), ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<I> Freeze for Matcher<I>
impl<I> !RefUnwindSafe for Matcher<I>
impl<I> Send for Matcher<I>
impl<I> !Sync for Matcher<I>
impl<I> Unpin for Matcher<I>
impl<I> !UnwindSafe for Matcher<I>
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