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

pub trait Interval<T>: Set<T> where
    T: Num + Copy
{ fn from_boundaries(start: T, end_inclusive: T) -> Self;
fn get_start(&self) -> T;
fn get_end(&self) -> T;
fn length(&self) -> 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

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

fn get_start(&self) -> T

fn get_end(&self) -> T

fn length(&self) -> T

Loading content...

Implementors

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

Loading content...