Trait IndexOrd
Source pub trait IndexOrd<V> {
// Required methods
fn index_cmp(&self, idx: usize, elem: &V) -> Option<Ordering>;
fn len(&self) -> usize;
// Provided methods
fn index_lt(&self, idx: usize, elem: &V) -> bool { ... }
fn index_le(&self, idx: usize, elem: &V) -> bool { ... }
fn index_gt(&self, idx: usize, elem: &V) -> bool { ... }
fn index_ge(&self, idx: usize, elem: &V) -> bool { ... }
}
PartialOrd of the value at index idx
with elem
.
For example, if self[idx] > elem, return Some(Greater).
Get the length of the underlying ordered collection