[][src]Trait mockers::CallMatch

pub trait CallMatch {
    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 get_type_param_ids(&self) -> &[usize];
fn describe(&self) -> String; fn matches(&self, call: &Call) -> bool { ... }
fn matches_target(&self, call: &Call) -> bool { ... }
fn matches_generic_method(&self, call: &Call) -> bool { ... }
fn matches_method(&self, call: &Call) -> bool { ... } }

Required methods

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 get_type_param_ids(&self) -> &[usize]

fn describe(&self) -> String

Loading content...

Provided methods

fn matches(&self, call: &Call) -> bool

fn matches_target(&self, call: &Call) -> bool

fn matches_generic_method(&self, call: &Call) -> bool

fn matches_method(&self, call: &Call) -> bool

Loading content...

Implementors

impl<Arg0, Arg1, Arg2, Arg3, Res> CallMatch for CallMatch4<Arg0, Arg1, Arg2, Arg3, Res>[src]

fn matches(&self, call: &Call) -> bool[src]

fn matches_target(&self, call: &Call) -> bool[src]

fn matches_generic_method(&self, call: &Call) -> bool[src]

fn matches_method(&self, call: &Call) -> bool[src]

impl<Arg0, Arg1, Arg2, Res> CallMatch for CallMatch3<Arg0, Arg1, Arg2, Res>[src]

fn matches(&self, call: &Call) -> bool[src]

fn matches_target(&self, call: &Call) -> bool[src]

fn matches_generic_method(&self, call: &Call) -> bool[src]

fn matches_method(&self, call: &Call) -> bool[src]

impl<Arg0, Arg1, Res> CallMatch for CallMatch2<Arg0, Arg1, Res>[src]

fn matches(&self, call: &Call) -> bool[src]

fn matches_target(&self, call: &Call) -> bool[src]

fn matches_generic_method(&self, call: &Call) -> bool[src]

fn matches_method(&self, call: &Call) -> bool[src]

impl<Arg0, Res> CallMatch for CallMatch1<Arg0, Res>[src]

fn matches(&self, call: &Call) -> bool[src]

fn matches_target(&self, call: &Call) -> bool[src]

fn matches_generic_method(&self, call: &Call) -> bool[src]

fn matches_method(&self, call: &Call) -> bool[src]

impl<Res> CallMatch for CallMatch0<Res>[src]

fn matches(&self, call: &Call) -> bool[src]

fn matches_target(&self, call: &Call) -> bool[src]

fn matches_generic_method(&self, call: &Call) -> bool[src]

fn matches_method(&self, call: &Call) -> bool[src]

Loading content...