pub struct write_u8;
Available on crate feature
mock-core
only.Expand description
MockFn for Hasher::write_u8(i: u8)
.
Trait Implementations§
source§impl MockFn for write_u8
impl MockFn for write_u8
§type OutputKind = Owning<()>
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
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
fn info() -> MockFnInfo
Static information about the mocked method
source§fn debug_inputs(i: &Self::Inputs<'_>) -> Box<[Option<String>]>
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>
fn stub<E>(self, each_fn: E) -> 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>
fn some_call( self, matching_fn: &dyn Fn(&mut Matching<Self>) ) -> DefineResponse<'static, Self, InAnyOrder>
source§fn each_call(
self,
matching_fn: &dyn Fn(&mut Matching<Self>)
) -> DefineMultipleResponses<'static, Self, InAnyOrder>
fn each_call( self, matching_fn: &dyn Fn(&mut Matching<Self>) ) -> DefineMultipleResponses<'static, Self, InAnyOrder>
Auto Trait Implementations§
impl Freeze for write_u8
impl RefUnwindSafe for write_u8
impl Send for write_u8
impl Sync for write_u8
impl Unpin for write_u8
impl UnwindSafe for write_u8
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more