Struct mockers::CallMatch1
[−]
[src]
#[must_use]pub struct CallMatch1<Arg0, Res> { /* fields omitted */ }
Methods
impl<Arg0, Res> CallMatch1<Arg0, Res>
[src]
fn new(
mock_id: usize,
mock_type_id: usize,
method_name: &'static str,
arg0: Box<MatchArg<Arg0>>
) -> Self
mock_id: usize,
mock_type_id: usize,
method_name: &'static str,
arg0: Box<MatchArg<Arg0>>
) -> Self
impl<Arg0, Res: 'static> CallMatch1<Arg0, Res>
[src]
fn and_return(self, result: Res) -> Expectation1<Arg0, Res>
fn and_panic(self, msg: String) -> Expectation1<Arg0, Res>
fn and_call<F>(self, func: F) -> Expectation1<Arg0, Res> where
F: FnOnce(Arg0) -> Res + 'static,
F: FnOnce(Arg0) -> Res + 'static,
impl<Arg0, Res: Clone + 'static> CallMatch1<Arg0, Res>
[src]
fn and_return_clone(self, result: Res) -> Reaction1<Arg0, Res>
fn and_call_clone<F>(self, func: F) -> Reaction1<Arg0, Res> where
F: FnMut(Arg0) -> Res + 'static,
F: FnMut(Arg0) -> Res + 'static,