Trait portion_rs::ops::Operations[][src]

pub trait Operations: Sized {
    type Output;
    fn empty(&self) -> bool { ... }
fn atomic(&self) -> bool { ... }
fn intersection(self, _other: Self::Output) -> Self::Output { ... }
fn union(self, _other: Self::Output) -> Self::Output { ... } }

Operations defined on interval-like things.

Associated Types

type Output[src]

The return type used in implementations.

Loading content...

Provided methods

fn empty(&self) -> bool[src]

Returns whether the interval is empty, regardless of it’s actual type.

fn atomic(&self) -> bool[src]

Returns whether the interval is atomic.

fn intersection(self, _other: Self::Output) -> Self::Output[src]

Returns the intersection of two intervals, shorthand for interval & interval.

fn union(self, _other: Self::Output) -> Self::Output[src]

Returns the union of two intervals, shorthand for interval | interval.

Loading content...

Implementors

impl<T: Item> Operations for Interval<T>[src]

type Output = Self

Loading content...