pub struct RangeToInclusive<M> { /* private fields */ }Expand description
A mutator for core::ops::RangeToInclusive<T> values.
See the range_to_inclusive() function to create new instances and for
example usage.
Trait Implementations§
Source§impl<M: Clone> Clone for RangeToInclusive<M>
impl<M: Clone> Clone for RangeToInclusive<M>
Source§fn clone(&self) -> RangeToInclusive<M>
fn clone(&self) -> RangeToInclusive<M>
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<M: Debug> Debug for RangeToInclusive<M>
impl<M: Debug> Debug for RangeToInclusive<M>
Source§impl<M: Default> Default for RangeToInclusive<M>
impl<M: Default> Default for RangeToInclusive<M>
Source§fn default() -> RangeToInclusive<M>
fn default() -> RangeToInclusive<M>
Returns the “default value” for a type. Read more
Source§impl<M, T> Generate<RangeToInclusive<T>> for RangeToInclusive<M>where
M: Generate<T>,
impl<M, T> Generate<RangeToInclusive<T>> for RangeToInclusive<M>where
M: Generate<T>,
Source§impl<M, T> Mutate<RangeToInclusive<T>> for RangeToInclusive<M>where
M: Mutate<T>,
impl<M, T> Mutate<RangeToInclusive<T>> for RangeToInclusive<M>where
M: Mutate<T>,
Source§fn mutate(
&mut self,
c: &mut Candidates<'_>,
value: &mut RangeToInclusive<T>,
) -> Result<()>
fn mutate( &mut self, c: &mut Candidates<'_>, value: &mut RangeToInclusive<T>, ) -> Result<()>
Pseudo-randomly mutate the given value. Read more
Source§fn mutation_count(
&self,
value: &RangeToInclusive<T>,
shrink: bool,
) -> Option<u32>
fn mutation_count( &self, value: &RangeToInclusive<T>, shrink: bool, ) -> Option<u32>
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<M> Freeze for RangeToInclusive<M>where
M: Freeze,
impl<M> RefUnwindSafe for RangeToInclusive<M>where
M: RefUnwindSafe,
impl<M> Send for RangeToInclusive<M>where
M: Send,
impl<M> Sync for RangeToInclusive<M>where
M: Sync,
impl<M> Unpin for RangeToInclusive<M>where
M: Unpin,
impl<M> UnsafeUnpin for RangeToInclusive<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for RangeToInclusive<M>where
M: UnwindSafe,
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