Struct Matcher

Source
pub struct Matcher<I>(/* private fields */);
Expand description

An enum describes what arguments are expected

Trait Implementations§

Source§

impl From<()> for Matcher<()>

Source§

fn from((): ()) -> Self

Converts to this type from the input type.
Source§

impl<Arg1: Send + 'static> From<(ArgMatcher<Arg1>,)> for Matcher<(Arg1,)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

Source§

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)>

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

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)>

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

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)>

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

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)>

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

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> 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<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<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<T> MockableArg for T
where T: Send + 'static,

Source§

impl<T> MockableRet for T
where T: Send + 'static,