Struct mockers::CallMatch2
[−]
[src]
#[must_use] pub struct CallMatch2<Arg0, Arg1, Res> { // some fields omitted }
#[must_use] pub struct CallMatch2<Arg0, Arg1, Res> { // some fields omitted }
impl<Arg0, Arg1, Res> CallMatch2<Arg0, Arg1, Res>
[src]fn new(mock_id: usize, mock_type_id: usize, method_name: &'static str, arg0: Box<MatchArg<Arg0>>, arg1: Box<MatchArg<Arg1>>) -> Self
impl<Arg0, Arg1, Res: 'static> CallMatch2<Arg0, Arg1, Res>
[src]fn and_return(self, result: Res) -> Expectation2<Arg0, Arg1, Res>
fn and_panic(self, msg: String) -> Expectation2<Arg0, Arg1, Res>
fn and_call<F>(self, func: F) -> Expectation2<Arg0, Arg1, Res> where F: FnOnce(Arg0, Arg1) -> Res + 'static
impl<Arg0, Arg1, Res: Clone + 'static> CallMatch2<Arg0, Arg1, Res>
[src]fn and_return_clone(self, result: Res) -> Reaction2<Arg0, Arg1, Res>
fn and_call_clone<F>(self, func: F) -> Reaction2<Arg0, Arg1, Res> where F: FnMut(Arg0, Arg1) -> Res + 'static
impl<Arg0, Arg1, Res: Default + 'static> CallMatch2<Arg0, Arg1, Res>
[src]fn and_return_default(self) -> Reaction2<Arg0, Arg1, Res>
impl<Arg0, Arg1, Res> CallMatch for CallMatch2<Arg0, Arg1, Res>
[src]fn matches_args(&self, call: &Call) -> bool
fn validate(&self, call: &Call) -> Vec<Result<(), String>>
fn get_mock_id(&self) -> usize
fn get_mock_type_id(&self) -> usize
fn get_method_name(&self) -> &'static str
fn describe(&self) -> String
fn matches(&self, call: &Call) -> bool
fn matches_target(&self, call: &Call) -> bool
fn matches_method(&self, call: &Call) -> bool