pub enum Proximity<'t, K, V> {
Exact(Iter<'t, K, V>),
Between(Iter<'t, K, V>),
Smaller(Iter<'t, K, V>),
Larger(Iter<'t, K, V>),
Empty,
}Expand description
Proximity of the Iter to the key passed to TreeIndex::locate.
Variants§
Exact(Iter<'t, K, V>)
Between(Iter<'t, K, V>)
Iter that points to the closest smaller key and the closest larger key.
Iter::get returns the closest smaller key, and Iter::get_back returns the closest
larger key.
Smaller(Iter<'t, K, V>)
Iter that points to the closest smaller key.
The TreeIndex does not contain any larger keys than the specified key, and
Iter::get_back returns the closest smaller key.
Larger(Iter<'t, K, V>)
Iter that points to the closest larger key.
The TreeIndex does not contain any smaller keys than the specified key, and
Iter::get returns the closest larger key.
Empty
The TreeIndex is empty.
Trait Implementations§
Auto Trait Implementations§
impl<'t, K, V> !RefUnwindSafe for Proximity<'t, K, V>
impl<'t, K, V> !Send for Proximity<'t, K, V>
impl<'t, K, V> !Sync for Proximity<'t, K, V>
impl<'t, K, V> Freeze for Proximity<'t, K, V>
impl<'t, K, V> Unpin for Proximity<'t, K, V>
impl<'t, K, V> UnsafeUnpin for Proximity<'t, K, V>
impl<'t, K, V> UnwindSafe for Proximity<'t, K, V>
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