pub enum Bias {
GreatestLowerBound,
LeastUpperBound,
}Expand description
Search bias for position lookups.
Controls how non-exact matches are resolved during binary search:
GreatestLowerBound(default): find the closest mapping at or before the positionLeastUpperBound: find the closest mapping at or after the position
Variants§
GreatestLowerBound
Return the closest position at or before the requested position (default).
LeastUpperBound
Return the closest position at or after the requested position.
Trait Implementations§
impl Copy for Bias
impl Eq for Bias
impl StructuralPartialEq for Bias
Auto Trait Implementations§
impl Freeze for Bias
impl RefUnwindSafe for Bias
impl Send for Bias
impl Sync for Bias
impl Unpin for Bias
impl UnsafeUnpin for Bias
impl UnwindSafe for Bias
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