pub struct NonZeroI32 { /* private fields */ }Expand description
A mutator for
NonZero<i32>
values.
See the
non_zero_i32()
function to create new instances and for example usage.
Trait Implementations§
Source§impl Clone for NonZeroI32
impl Clone for NonZeroI32
Source§fn clone(&self) -> NonZeroI32
fn clone(&self) -> NonZeroI32
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NonZeroI32
impl Debug for NonZeroI32
Source§impl Default for NonZeroI32
impl Default for NonZeroI32
Source§fn default() -> NonZeroI32
fn default() -> NonZeroI32
Returns the “default value” for a type. Read more
Source§impl Mutate<NonZero<i32>> for NonZeroI32
impl Mutate<NonZero<i32>> for NonZeroI32
Source§fn mutate(
&mut self,
c: &mut Candidates<'_>,
value: &mut NonZero<i32>,
) -> Result<()>
fn mutate( &mut self, c: &mut Candidates<'_>, value: &mut NonZero<i32>, ) -> Result<()>
Pseudo-randomly mutate the given value. Read more
Source§fn generate_via_mutate(
&mut self,
context: &mut Context,
iters: usize,
) -> Result<T>
fn generate_via_mutate( &mut self, context: &mut Context, iters: usize, ) -> Result<T>
Generate a new value by mutating its default value
iters times. Read moreSource§fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
Create a new mutator that performs either this mutation or the
other
mutation. Read moreSource§fn map<F>(self, f: F) -> Map<Self, F>
fn map<F>(self, f: F) -> Map<Self, F>
Map a function over the mutations produced by this mutator. Read more
Auto Trait Implementations§
impl Freeze for NonZeroI32
impl RefUnwindSafe for NonZeroI32
impl Send for NonZeroI32
impl Sync for NonZeroI32
impl Unpin for NonZeroI32
impl UnsafeUnpin for NonZeroI32
impl UnwindSafe for NonZeroI32
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