pub struct Quantify<'p, F: MockFn, O> { /* private fields */ }
Expand description
Builder for defining how a call pattern gets verified with regards to quantification/counting.
Implementations
sourceimpl<'p, F, O> Quantify<'p, F, O>where
F: MockFn + 'static,
O: Ordering,
impl<'p, F, O> Quantify<'p, F, O>where
F: MockFn + 'static,
O: Ordering,
sourcepub fn once(self) -> QuantifiedResponse<'p, F, O, Exact>
pub fn once(self) -> QuantifiedResponse<'p, F, O, Exact>
Expect this call pattern to be called exactly once.
sourcepub fn n_times(self, times: usize) -> QuantifiedResponse<'p, F, O, Exact>
pub fn n_times(self, times: usize) -> QuantifiedResponse<'p, F, O, Exact>
Expect this call pattern to be called exactly the specified number of times.
sourcepub fn at_least_times(
self,
times: usize
) -> QuantifiedResponse<'p, F, O, AtLeast>
pub fn at_least_times(
self,
times: usize
) -> QuantifiedResponse<'p, F, O, AtLeast>
Expect this call pattern to be called at least the specified number of times.
Auto Trait Implementations
impl<'p, F, O> !RefUnwindSafe for Quantify<'p, F, O>
impl<'p, F, O> Send for Quantify<'p, F, O>where
F: Send,
O: Send,
impl<'p, F, O> Sync for Quantify<'p, F, O>where
F: Sync,
O: Sync,
impl<'p, F, O> Unpin for Quantify<'p, F, O>where
F: Unpin,
O: Unpin,
impl<'p, F, O> !UnwindSafe for Quantify<'p, F, O>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more