[][src]Trait nclist::Interval

pub trait Interval {
    type Coord: Ord;
    fn start(&self) -> &Self::Coord;
fn end(&self) -> &Self::Coord; }

The interval trait needs to be implemented for T before you can create an NClist<T>. An interval is half-open, inclusive start and exclusive end (like std::ops::Range<T>), but end > start must always be true.

Associated Types

type Coord: Ord

The coordinate type of the interval. This type must implement std::ops::Ord

Loading content...

Required methods

fn start(&self) -> &Self::Coord

Return a reference to the start coordinate of the interval (inclusive)

fn end(&self) -> &Self::Coord

Return a reference to the end coordinate of the interval (non-inclusive)

Loading content...

Implementations on Foreign Types

impl<N> Interval for Range<N> where
    N: Ord
[src]

Interval is already implemented for std::ops::Range.

type Coord = N

Loading content...

Implementors

Loading content...