pub trait Bisect: Clone {
// Required method
fn middle_point(&self, other: &Self) -> Option<Self>;
}
Expand description
binary search helper
Required Methods§
Sourcefn middle_point(&self, other: &Self) -> Option<Self>
fn middle_point(&self, other: &Self) -> Option<Self>
Return between two elements if search is not end.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.