Struct exar::Interval [] [src]

pub struct Interval<T> {
    pub start: T,
    pub end: T,
}

An interval.

Fields

start: T

The start of the interval.

end: T

The end of the interval.

Methods

impl<T> Interval<T>
[src]

fn new(start: T, end: T) -> Interval<T>

Trait Implementations

impl<T: PartialEq> PartialEq for Interval<T>
[src]

fn eq(&self, __arg_0: &Interval<T>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Interval<T>) -> bool

This method tests for !=.

impl<T: Eq> Eq for Interval<T>
[src]

impl<T: Debug> Debug for Interval<T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T: Clone> Clone for Interval<T>
[src]

fn clone(&self) -> Interval<T>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more