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. Read more

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> AbsDiffEq for Range<T> where
    T: AbsDiffEq + Float,
    T::Epsilon: Copy
[src]

Used for specifying relative comparisons.

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

A test for equality that uses the absolute difference to compute the approximate equality of two numbers. Read more

The inverse of ApproxEq::abs_diff_eq.

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

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

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

The inverse of ApproxEq::relative_eq.

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

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

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

The inverse of ApproxEq::ulps_eq.

Auto Trait Implementations

impl<T> Send for Range<T> where
    T: Send

impl<T> Sync for Range<T> where
    T: Sync