pub struct State { /* private fields */ }Expand description
Mock invocation state.
Implementations§
Source§impl State
impl State
Sourcepub fn next_u128_invocations(&self) -> u64
pub fn next_u128_invocations(&self) -> u64
Obtains the number of invocations of the Rand::next_u128 method.
Sourcepub fn next_bool_invocations(&self) -> u64
pub fn next_bool_invocations(&self) -> u64
Obtains the number of invocations of the Rand::next_bool method.
Sourcepub fn next_lim_u128_invocations(&self) -> u64
pub fn next_lim_u128_invocations(&self) -> u64
Obtains the number of invocations of the Rand::next_lim_u128 method.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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