Trait test_tools::IntervalAdapter
source · pub trait IntervalAdapter<T = isize>where
T: Sub<Output = T> + Add<Output = T> + Copy,
isize: Into<T>,{
// 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