[][src]Trait math::interval::traits::Interval

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

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

pub fn from_boundaries(start: T, end_inclusive: T) -> Self[src]

pub fn get_start(&self) -> T[src]

pub fn get_end(&self) -> T[src]

pub fn length(&self) -> T[src]

Loading content...

Provided methods

pub fn get_start_if_nonempty(&self) -> Option<T>[src]

pub fn get_end_if_nonempty(&self) -> Option<T>[src]

Loading content...

Implementors

impl<E: Integer + Copy> Interval<E> for ContiguousIntegerSet<E>[src]

Loading content...