pub trait IntervalAdapter<T = isize>{
// Required methods
fn first(&self) -> T;
fn last(&self) -> T;
// Provided methods
fn len(&self) -> T { ... }
fn closed(&self) -> (T, T) { ... }
fn closed_open(&self) -> (T, T) { ... }
fn first_len(&self) -> (T, T) { ... }
}
Expand description
Interval adapter. Interface to interval-like structures.
Required Methods§
Provided Methods§
Sourcefn closed_open(&self) -> (T, T)
fn closed_open(&self) -> (T, T)
interval in closed-open format as pair of numbers