pub struct write_u8;
Available on crate feature mock-core only.
Expand description

Trait Implementations§

source§

impl MockFn for write_u8

§

type Inputs<'__i> = u8

The inputs to a mockable function. Read more
§

type OutputKind = Owning<()>

A type that describes how the mocked function responds. Read more
§

type AnswerFn = dyn for<'__u> Fn(&'__u mut Unimock, u8) + Send + Sync

The function type used for function application on a call pattern.
source§

fn info() -> MockFnInfo

Static information about the mocked method
source§

fn debug_inputs(i: &Self::Inputs<'_>) -> Box<[Option<String>]>

Compute some debug representation of the inputs.
source§

fn stub<E>(self, each_fn: E) -> Each<Self>
where E: FnOnce(&mut Each<Self>),

Create a stubbing clause by grouping calls. Read more
source§

fn some_call( self, matching_fn: &dyn Fn(&mut Matching<Self>) ) -> DefineResponse<'static, Self, InAnyOrder>

Define a stub-like call pattern directly on this MockFn. Read more
source§

fn each_call( self, matching_fn: &dyn Fn(&mut Matching<Self>) ) -> DefineMultipleResponses<'static, Self, InAnyOrder>

Define a stub-like call pattern directly on this MockFn. Read more
source§

fn next_call( self, matching_fn: &dyn Fn(&mut Matching<Self>) ) -> DefineResponse<'static, Self, InOrder>

Initiate a call pattern builder intended to be used as a Clause with exact order verification. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Is for T
where T: ?Sized,

§

type EqTo = T

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.