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) -> NoShrink<T>
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
Auto Trait Implementations
impl<T> Freeze for NoShrink<T>
where
T: Freeze,
impl<T> RefUnwindSafe for NoShrink<T>
where
T: RefUnwindSafe,
impl<T> Send for NoShrink<T>
where
T: Send,
impl<T> Sync for NoShrink<T>
where
T: Sync,
impl<T> Unpin for NoShrink<T>
where
T: Unpin,
impl<T> UnsafeUnpin for NoShrink<T>
where
T: UnsafeUnpin,
impl<T> UnwindSafe for NoShrink<T>
where
T: UnwindSafe,
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for NoShrink<T>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for NoShrink<T>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for NoShrink<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for NoShrink<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for NoShrink<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for NoShrink<T>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for NoShrink<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for NoShrink<T>
where
T: ?Sized,
impl<T> ToOwned for NoShrink<T>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for NoShrink<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for NoShrink<T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for NoShrink<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for NoShrink<T>
where
V: MultiLane<T>,
fn vzip(self) -> V