pub struct BinarySearch;Expand description
Performs a binary search on a slice, with computational complexity O(log n)
However, for small searches, a linear search may be faster.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinarySearch
impl RefUnwindSafe for BinarySearch
impl Send for BinarySearch
impl Sync for BinarySearch
impl Unpin for BinarySearch
impl UnwindSafe for BinarySearch
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