Struct NoShrink
#[must_use = "strategies do nothing unless used"]
pub struct NoShrink<T>(/* private field */);
Wraps a Strategy or ValueTree to suppress shrinking of generated
values.
See Strategy::no_shrink() for more details.
Trait Implementations
impl<T: Clone> Clone for NoShrink<T>
fn clone(&self) -> Self
impl<T: Copy> Copy for NoShrink<T>
impl<T: Debug> Debug for NoShrink<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Strategy> Strategy for NoShrink<T>
type Tree = NoShrink<<T as Strategy>::Tree>;type Value = <T as Strategy>::Value;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>
impl<T: ValueTree> ValueTree for NoShrink<T>
type Value = <T as ValueTree>::Value;fn current(&self) -> T::Valuefn simplify(&mut self) -> boolfn complicate(&mut self) -> bool