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: TThe 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) -> boolfn complicate(&mut self) -> boolfn 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