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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.

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

[src]

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

[src]

This method tests for !=.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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

Used for specifying relative comparisons.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

The inverse of ApproxEq::relative_eq.

[src]

The inverse of ApproxEq::ulps_eq.