Struct mockers::CallMatch1
[−]
[src]
#[must_use] pub struct CallMatch1<Arg0, Res> { /* fields omitted */ }
#[must_use] pub struct CallMatch1<Arg0, Res> { /* fields omitted */ }
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
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
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
impl<Arg0, Res: Default + 'static> CallMatch1<Arg0, Res>
[src]fn and_return_default(self) -> Reaction1<Arg0, Res>
impl<Arg0, Res> CallMatch for CallMatch1<Arg0, 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