Struct palette::gradient::Range [] [src]

pub struct Range<T: Float> { /* fields omitted */ }

A domain range for gradient slices.

Trait Implementations

impl<T: Clone + Float> Clone for Range<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + Float> Debug for Range<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq + Float> PartialEq for Range<T>
[src]

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

This method tests for !=.

impl<T: Float> From<Range<T>> for Range<T>
[src]

Performs the conversion.

impl<T: Float> From<RangeFrom<T>> for Range<T>
[src]

Performs the conversion.

impl<T: Float> From<RangeTo<T>> for Range<T>
[src]

Performs the conversion.

impl<T: Float> From<RangeFull> for Range<T>
[src]

Performs the conversion.

impl<T> ApproxEq for Range<T> where
    T: ApproxEq + Float,
    T::Epsilon: Copy
[src]

Used for specifying relative comparisons.

The default tolerance to use when testing values that are close together. Read more

The default relative tolerance for testing values that are far-apart. Read more

The default ULPs to tolerate when testing values that are far-apart. Read more

A test for equality that uses a relative comparison if the values are far apart.

A test for equality that uses units in the last place (ULP) if the values are far apart.

The inverse of ApproxEq::relative_eq.

The inverse of ApproxEq::ulps_eq.