Struct theme2::ColorScaleStep
source · pub struct ColorScaleStep(_);
Expand description
A one-based step in a ColorScale
.
Implementations§
source§impl ColorScaleStep
impl ColorScaleStep
pub const ONE: Self = _
pub const TWO: Self = _
pub const THREE: Self = _
pub const FOUR: Self = _
pub const FIVE: Self = _
pub const SIX: Self = _
pub const SEVEN: Self = _
pub const EIGHT: Self = _
pub const NINE: Self = _
pub const TEN: Self = _
pub const ELEVEN: Self = _
pub const TWELVE: Self = _
sourcepub const ALL: [ColorScaleStep; 12] = _
pub const ALL: [ColorScaleStep; 12] = _
All of the steps in a ColorScale
.
Trait Implementations§
source§impl Clone for ColorScaleStep
impl Clone for ColorScaleStep
source§fn clone(&self) -> ColorScaleStep
fn clone(&self) -> ColorScaleStep
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ColorScaleStep
impl Debug for ColorScaleStep
source§impl Hash for ColorScaleStep
impl Hash for ColorScaleStep
source§impl Ord for ColorScaleStep
impl Ord for ColorScaleStep
source§fn cmp(&self, other: &ColorScaleStep) -> Ordering
fn cmp(&self, other: &ColorScaleStep) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ColorScaleStep> for ColorScaleStep
impl PartialEq<ColorScaleStep> for ColorScaleStep
source§fn eq(&self, other: &ColorScaleStep) -> bool
fn eq(&self, other: &ColorScaleStep) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ColorScaleStep> for ColorScaleStep
impl PartialOrd<ColorScaleStep> for ColorScaleStep
source§fn partial_cmp(&self, other: &ColorScaleStep) -> Option<Ordering>
fn partial_cmp(&self, other: &ColorScaleStep) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ColorScaleStep
impl Eq for ColorScaleStep
impl StructuralEq for ColorScaleStep
impl StructuralPartialEq for ColorScaleStep
Auto Trait Implementations§
impl RefUnwindSafe for ColorScaleStep
impl Send for ColorScaleStep
impl Sync for ColorScaleStep
impl Unpin for ColorScaleStep
impl UnwindSafe for ColorScaleStep
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.