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]
impl<T: Clone + Float> Clone for Range<T>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: Debug + Float> Debug for Range<T>
[src]
impl<T: Debug + Float> Debug for Range<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: PartialEq + Float> PartialEq for Range<T>
[src]
impl<T: PartialEq + Float> PartialEq for Range<T>
fn eq(&self, other: &Range<T>) -> bool
[src]
fn eq(&self, other: &Range<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Range<T>) -> bool
[src]
fn ne(&self, other: &Range<T>) -> bool
This method tests for !=
.
impl<T: Float> From<Range<T>> for Range<T>
[src]
impl<T: Float> From<Range<T>> for Range<T>
impl<T: Float> From<RangeFrom<T>> for Range<T>
[src]
impl<T: Float> From<RangeFrom<T>> for Range<T>
impl<T: Float> From<RangeTo<T>> for Range<T>
[src]
impl<T: Float> From<RangeTo<T>> for Range<T>
impl<T: Float> From<RangeFull> for Range<T>
[src]
impl<T: Float> From<RangeFull> for Range<T>
impl<T> ApproxEq for Range<T> where
T: ApproxEq + Float,
T::Epsilon: Copy,
[src]
impl<T> ApproxEq for Range<T> where
T: ApproxEq + Float,
T::Epsilon: Copy,
type Epsilon = T::Epsilon
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
[src]
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
[src]
fn default_max_relative() -> Self::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
fn default_max_ulps() -> u32
[src]
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
[src]
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
[src]
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
[src]
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
[src]
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
The inverse of ApproxEq::ulps_eq
.