Struct honestintervals::IntervalSet [] [src]

pub struct IntervalSet<BOUND: PartialEq + PartialOrd> {
    pub intervals: Vec<Interval<BOUND>>,
}

Interval set struct.

Represents a set of non-intersecting intervals.

Fields

Non-intersecting intervals in strictly ascending order.

Methods

impl<BOUND: Float> IntervalSet<BOUND>
[src]

Constructs an interval set of one interval from given bounds.

The result may be empty if both bounds are NaN.

Constructs an interval set of one interval from given interval.

The result may be empty if the interval is NaN.

Constructs an interval set from given intervals.

The intervals will be sorted and the intersecting intervals will be merged.

Constructs an interval set of one singleton interval.

The result may be empty if the value is NaN.

Constructs an interval set of one interval containing only zero.

Constructs an interval set of one interval containing only one.

Constructs an empty interval set.

Constructs an interval set of one interval containing all numbers.

Constructs an interval set from a float with given precision.

Constructs an interval set by parsing a string.

Accepts INTERVAL_SET according to the rule below.

INTERVAL_SET = INTERVAL | '{' ( INTERVAL ( ';' INTERVAL )* )? '}'

Whether self contains only one interval that is singleton.

Whether self contains only one interval that contains only zero.

Whether self is empty.

Whether self contains an interval that contains zero.

Performs a binary operation by performing it on all pairs of intervals of self and rhs.

Trait Implementations

impl<BOUND: Clone + PartialEq + PartialOrd> Clone for IntervalSet<BOUND>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<BOUND: Debug + PartialEq + PartialOrd> Debug for IntervalSet<BOUND>
[src]

Formats the value using the given formatter.

impl<BOUND: Float> From<f64> for IntervalSet<BOUND>
[src]

Performs the conversion.

impl<BOUND: Float> FromStr for IntervalSet<BOUND>
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl<BOUND: Float> Display for IntervalSet<BOUND>
[src]

Formats the value using the given formatter. Read more

impl<BOUND: Float> Into<Vec<(BOUND, BOUND)>> for IntervalSet<BOUND>
[src]

Performs the conversion.

impl<BOUND: Float> PartialEq for IntervalSet<BOUND>
[src]

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

This method tests for !=.

impl<BOUND: Float> Neg for IntervalSet<BOUND>
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl<BOUND: Float> Add<Self> for IntervalSet<BOUND>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<BOUND: Float> Sub<Self> for IntervalSet<BOUND>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<BOUND: Float> Mul<Self> for IntervalSet<BOUND>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<BOUND: Float> Div<Self> for IntervalSet<BOUND>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<BOUND: Float> Transc for IntervalSet<BOUND>
[src]

Output type.

Computes the natural logarithm of self.

Computes the natural exponential of self.

Computes self raised to the power rhs.