Trait non_std::protected::dt::dependencies::winterval::exposed::IntervalAdapter
source · [−]pub trait IntervalAdapter<T = isize> where
T: Sub<T, Output = T> + Add<T, Output = T> + Copy,
isize: Into<T>, {
fn first(&self) -> T;
fn last(&self) -> T;
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
fn closed_open(&self) -> (T, T)
fn closed_open(&self) -> (T, T)
interval in closed-open format as pair of numbers