pub struct ProptestTree<VT>(/* private fields */);Expand description
Trait Implementations§
Source§impl<VT, T> ValueTree<T> for ProptestTree<VT>where
VT: ValueTree<Value = T>,
impl<VT, T> ValueTree<T> for ProptestTree<VT>where
VT: ValueTree<Value = T>,
Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Replaces the current value with a simpler one. Returns
true if it
moved, false if the value is already as simple as the tree can make
it.Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Walks back toward the last value that still failed, undoing a
simplify that shrank past the failure. Returns
true if it moved.Auto Trait Implementations§
impl<VT> Freeze for ProptestTree<VT>where
VT: Freeze,
impl<VT> RefUnwindSafe for ProptestTree<VT>where
VT: RefUnwindSafe,
impl<VT> Send for ProptestTree<VT>where
VT: Send,
impl<VT> Sync for ProptestTree<VT>where
VT: Sync,
impl<VT> Unpin for ProptestTree<VT>where
VT: Unpin,
impl<VT> UnsafeUnpin for ProptestTree<VT>where
VT: UnsafeUnpin,
impl<VT> UnwindSafe for ProptestTree<VT>where
VT: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more