Struct VecStrategy

#[must_use = "strategies do nothing unless used"]
pub struct VecStrategy<T: Strategy> { /* private fields */ }

Strategy to create Vecs with a length in a certain range.

Created by the vec() function in the same module.

Trait Implementations

impl<T: Clone + Strategy> Clone for VecStrategy<T>

fn clone(&self) -> Self

impl<T: Debug + Strategy> Debug for VecStrategy<T>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<T: Strategy> Strategy for VecStrategy<T>

type Tree = VecValueTree<<T as Strategy>::Tree>;
type Value = Vec<<T as Strategy>::Value>;
fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>

Auto Trait Implementations

impl<T> Freeze for VecStrategy<T> where T: Freeze,

impl<T> RefUnwindSafe for VecStrategy<T> where T: RefUnwindSafe,

impl<T> Send for VecStrategy<T> where T: Send,

impl<T> Sync for VecStrategy<T> where T: Sync,

impl<T> Unpin for VecStrategy<T> where T: Unpin,

impl<T> UnsafeUnpin for VecStrategy<T> where T: UnsafeUnpin,

impl<T> UnwindSafe for VecStrategy<T> where T: UnwindSafe,

Blanket Implementations

impl<T> Any for VecStrategy<T> where T: 'static + ?Sized,

impl<T> Borrow<T> for VecStrategy<T> where T: ?Sized,

impl<T> BorrowMut<T> for VecStrategy<T> where T: ?Sized,

impl<T> CloneToUninit for VecStrategy<T> where T: Clone,

impl<T> From<T> for VecStrategy<T>

impl<T> ToOwned for VecStrategy<T> where T: Clone,

impl<T, U> Into<U> for VecStrategy<T> where U: From<T>,

impl<T, U> TryFrom<U> for VecStrategy<T> where U: Into<T>,

impl<T, U> TryInto<U> for VecStrategy<T> where U: TryFrom<T>,