pub struct DeltaDebuggingBitmapValueTree { /* private fields */ }Expand description
This struct holds the state needed for an implementation of the delta debugging algorithm on bitmaps.
Together with proptest’s shrinking code and the ValueTree implementation,
this shrinks bitmaps in O(log(n)) time to a single bit causing a failure,
or shrinks bitmaps in O(n²) time to exactly the bits causing the failure
(more precisely: a set of bits where removing a single one of them will make
the failure go away).
Implementations§
Source§impl DeltaDebuggingBitmapValueTree
impl DeltaDebuggingBitmapValueTree
pub fn new(bitmap: RoaringBitmap) -> Self
Trait Implementations§
Source§impl ValueTree for DeltaDebuggingBitmapValueTree
impl ValueTree for DeltaDebuggingBitmapValueTree
Source§type Value = RoaringBitmap
type Value = RoaringBitmap
The type of the value produced by this
ValueTree.Source§fn simplify(&mut self) -> bool
fn simplify(&mut self) -> bool
Attempts to simplify the current value. Notionally, this sets the
“high” value to the current value, and the current value to a “halfway
point” between high and low, rounding towards low. Read more
Source§fn complicate(&mut self) -> bool
fn complicate(&mut self) -> bool
Attempts to partially undo the last simplification. Notionally, this
sets the “low” value to one plus the current value, and the current
value to a “halfway point” between high and the new low, rounding
towards low. Read more
Auto Trait Implementations§
impl Freeze for DeltaDebuggingBitmapValueTree
impl RefUnwindSafe for DeltaDebuggingBitmapValueTree
impl Send for DeltaDebuggingBitmapValueTree
impl Sync for DeltaDebuggingBitmapValueTree
impl Unpin for DeltaDebuggingBitmapValueTree
impl UnwindSafe for DeltaDebuggingBitmapValueTree
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