pub trait Interval<T>: Set<T>
where T: Num + Copy,
{ // Required methods fn from_boundaries(start: T, end_inclusive: T) -> Self; fn get_start(&self) -> T; fn get_end(&self) -> T; fn length(&self) -> T; // Provided methods fn get_start_if_nonempty(&self) -> Option<T> { ... } fn get_end_if_nonempty(&self) -> Option<T> { ... } }
Expand description

A one-dimensional interval with a start and an end. Whether or not the start and end elements are included in the interval depends on the actual implementor type

Required Methods§

source

fn from_boundaries(start: T, end_inclusive: T) -> Self

source

fn get_start(&self) -> T

source

fn get_end(&self) -> T

source

fn length(&self) -> T

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§