Struct Just

#[must_use = "strategies do nothing unless used"]
pub struct Just<T: Clone + Debug>(pub T);

A Strategy which always produces a single value and never simplifies.

Fields

0: T

The value produced by this strategy.

Trait Implementations

impl<T: Clone + Clone + Debug> Clone for Just<T>

fn clone(&self) -> Self

impl<T: Clone + Debug> Strategy for Just<T>

type Tree = Just<T>;
type Value = T;
fn new_tree(&self, &mut TestRunner) -> NewTree<Self>

impl<T: Clone + Debug> ValueTree for Just<T>

type Value = T;
fn simplify(&mut self) -> bool
fn complicate(&mut self) -> bool
fn current(&self) -> T

impl<T: Copy + Clone + Debug> Copy for Just<T>

impl<T: Debug + Clone + Debug> Debug for Just<T>

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

Auto Trait Implementations

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

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

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

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

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

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

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

Blanket Implementations

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

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

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

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

impl<T> From<T> for Just<T>

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

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

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

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