pub struct Near<F> { /* private fields */ }Expand description
Floats filed in buckets of neighbouring order keys, for tolerant search. Two floats within tolerance t of each other lie at most 2t/((1-t)ε) floats apart, where ε is the type’s epsilon. A bucket holds a power of 2 of keys, at least four times that. A key in the lower half of its bucket is therefore far enough from the upper edge that every float it matches lies in its own bucket or the neighbour on the side of its half. At f64 with the default tolerance, a bucket holds 512 keys.
Implementations§
Source§impl<F: Float> Near<F>
impl<F: Float> Near<F>
Auto Trait Implementations§
impl<F> Forget for Near<F>
impl<F> Freeze for Near<F>where
PhantomData<F>: Freeze,
impl<F> RefUnwindSafe for Near<F>where
PhantomData<F>: RefUnwindSafe,
impl<F> Send for Near<F>where
PhantomData<F>: Send,
impl<F> Sync for Near<F>where
PhantomData<F>: Sync,
impl<F> Unpin for Near<F>where
PhantomData<F>: Unpin,
impl<F> UnsafeUnpin for Near<F>where
PhantomData<F>: UnsafeUnpin,
impl<F> UnwindSafe for Near<F>where
PhantomData<F>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more