[][src]Struct mockers::CallMatch0

#[must_use]
pub struct CallMatch0<Res> { /* fields omitted */ }

Methods

impl<Res> CallMatch0<Res>[src]

pub fn new(
    mock_id: usize,
    mock_type_id: usize,
    method_name: &'static str,
    type_param_ids: Vec<usize>
) -> Self
[src]

impl<Res: 'static> CallMatch0<Res>[src]

pub fn and_return(self, result: Res) -> Expectation0<Res>[src]

pub fn and_panic(self, msg: String) -> Expectation0<Res>[src]

pub fn and_call<F>(self, func: F) -> Expectation0<Res> where
    F: FnOnce() -> Res + 'static, 
[src]

pub fn never(self) -> ExpectationNever<Self>[src]

impl<Res: Clone + 'static> CallMatch0<Res>[src]

pub fn and_return_clone(self, result: Res) -> Reaction0<Res>[src]

impl<Res> CallMatch0<Res>[src]

pub fn and_call_clone<F>(self, func: F) -> Reaction0<Res> where
    F: FnMut() -> Res + 'static, 
[src]

impl<Res: Default + 'static> CallMatch0<Res>[src]

pub fn and_return_default(self) -> Reaction0<Res>[src]

Trait Implementations

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]

Auto Trait Implementations

impl<Res> Send for CallMatch0<Res> where
    Res: Send

impl<Res> Sync for CallMatch0<Res> where
    Res: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]