Struct BinarySearch
pub struct BinarySearch { /* private fields */ }
Shrinks an integer towards 0, using binary search to find boundary points.
Implementations
impl BinarySearch
fn new(start: u8) -> SelfCreates a new binary searcher starting at the given value.
fn new_above(lo: u8, start: u8) -> SelfCreates a new binary searcher which will not search below the given
lovalue.
Trait Implementations
impl Clone for BinarySearch
fn clone(&self) -> Self
impl Copy for BinarySearch
impl Debug for BinarySearch
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl ValueTree for BinarySearch
type Value = u8;fn current(&self) -> u8fn simplify(&mut self) -> boolfn complicate(&mut self) -> bool