Struct BinarySearch

pub struct BinarySearch { /* private fields */ }

Shrinks a float towards 0, using binary search to find boundary points.

Non-finite values immediately shrink to 0.

Implementations

impl BinarySearch

fn new(start: f64) -> Self

Creates a new binary searcher starting at the given value.

Trait Implementations

impl Clone for BinarySearch

fn clone(&self) -> BinarySearch

impl Copy for BinarySearch

impl Debug for BinarySearch

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

impl ValueTree for BinarySearch

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

Auto Trait Implementations

impl Freeze for BinarySearch

impl RefUnwindSafe for BinarySearch

impl Send for BinarySearch

impl Sync for BinarySearch

impl Unpin for BinarySearch

impl UnsafeUnpin for BinarySearch

impl UnwindSafe for BinarySearch

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for BinarySearch where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for BinarySearch where ST: ?Sized, DT: ?Sized,

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for BinarySearch

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Read<Exclusive, BecauseExclusive> for BinarySearch where T: ?Sized,

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip<V> for BinarySearch where V: MultiLane<T>,

fn vzip(self) -> V