pub trait BoundedRange {
type Index: IntBound;
// Required methods
fn start(&self) -> Self::Index;
fn end(&self) -> Self::Index;
// Provided method
fn distance(&self) -> Self::Index { ... }
}Expand description
A definition of a bounded range.