Struct palette::gradient::Range
[−]
[src]
pub struct Range<T: Float> { // some fields omitted }
A domain range for gradient slices.
Trait Implementations
impl<T: PartialEq + Float> PartialEq for Range<T>
[src]
fn eq(&self, __arg_0: &Range<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Range<T>) -> bool
This method tests for !=
.
impl<T: Debug + Float> Debug for Range<T>
[src]
impl<T: Clone + Float> Clone for Range<T>
[src]
fn clone(&self) -> Range<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
impl<T: Float> From<Range<T>> for Range<T>
[src]
impl<T: Float> From<RangeFrom<T>> for Range<T>
[src]
impl<T: Float> From<RangeTo<T>> for Range<T>
[src]
impl<T: Float> From<RangeFull> for Range<T>
[src]
impl<T> ApproxEq for Range<T> where T: ApproxEq + Float, T::Epsilon: Copy
[src]
type Epsilon = T::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
fn default_max_relative() -> Self::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
fn default_max_ulps() -> u32
The default ULPs to tolerate when testing values that are far-apart. Read more
fn relative_eq(&self, other: &Range<T>, epsilon: Self::Epsilon, max_relative: Self::Epsilon) -> bool
A test for equality that uses a relative comparison if the values are far apart.
fn ulps_eq(&self, other: &Range<T>, epsilon: Self::Epsilon, max_ulps: u32) -> bool
A test for equality that uses units in the last place (ULP) if the values are far apart.
fn relative_ne(&self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon) -> bool
The inverse of ApproxEq::relative_eq
.
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
The inverse of ApproxEq::ulps_eq
.