pub trait Bisect: Copy {
// Required methods
fn middle(lo: Self, hi: Self) -> GeopResult<Self>;
fn strictly_between(lo: Self, mid: Self, hi: Self) -> bool;
}Expand description
A value a bracket can be bisected in.
Required Methods§
Sourcefn middle(lo: Self, hi: Self) -> GeopResult<Self>
fn middle(lo: Self, hi: Self) -> GeopResult<Self>
The middle of lo and hi: where the next side is asked.
Sourcefn strictly_between(lo: Self, mid: Self, hi: Self) -> bool
fn strictly_between(lo: Self, mid: Self, hi: Self) -> bool
Whether mid lies strictly between lo and hi — once it does not,
the bracket cannot shrink any further.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".