Struct Shuffle
#[must_use = "strategies do nothing unless used"]
pub struct Shuffle<S>(/* private field */);
Strategy shuffle adaptor.
See Strategy::prop_shuffle().
Trait Implementations
impl<S: Clone> Clone for Shuffle<S>
fn clone(&self) -> Shuffle<S>
impl<S: Debug> Debug for Shuffle<S>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S: Strategy> Strategy for Shuffle<S>
where
S::Value: Shuffleable,
type Tree = ShuffleValueTree<<S as Strategy>::Tree>;type Value = <S as Strategy>::Value;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>
Auto Trait Implementations
impl<S> Freeze for Shuffle<S>
where
S: Freeze,
impl<S> RefUnwindSafe for Shuffle<S>
where
S: RefUnwindSafe,
impl<S> Send for Shuffle<S>
where
S: Send,
impl<S> Sync for Shuffle<S>
where
S: Sync,
impl<S> Unpin for Shuffle<S>
where
S: Unpin,
impl<S> UnsafeUnpin for Shuffle<S>
where
S: UnsafeUnpin,
impl<S> UnwindSafe for Shuffle<S>
where
S: UnwindSafe,
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Shuffle<S>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Shuffle<S>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for Shuffle<S>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Shuffle<S>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Shuffle<S>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Shuffle<S>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Shuffle<S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for Shuffle<S>
where
T: ?Sized,
impl<T> ToOwned for Shuffle<S>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Shuffle<S>
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 Shuffle<S>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Shuffle<S>
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 Shuffle<S>
where
V: MultiLane<T>,
fn vzip(self) -> V