pub enum ColormapSelection {
Current,
Index(ColormapIndex),
}Expand description
Selected colormap for helpers that may use either the current style colormap or an explicit one.
Variants§
Current
Index(ColormapIndex)
Trait Implementations§
Source§impl Clone for ColormapSelection
impl Clone for ColormapSelection
Source§fn clone(&self) -> ColormapSelection
fn clone(&self) -> ColormapSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColormapSelection
Source§impl Debug for ColormapSelection
impl Debug for ColormapSelection
impl Eq for ColormapSelection
Source§impl From<Colormap> for ColormapSelection
impl From<Colormap> for ColormapSelection
Source§impl From<ColormapIndex> for ColormapSelection
impl From<ColormapIndex> for ColormapSelection
Source§fn from(value: ColormapIndex) -> Self
fn from(value: ColormapIndex) -> Self
Converts to this type from the input type.
Source§impl From<Option<ColormapIndex>> for ColormapSelection
impl From<Option<ColormapIndex>> for ColormapSelection
Source§fn from(value: Option<ColormapIndex>) -> Self
fn from(value: Option<ColormapIndex>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ColormapSelection
impl PartialEq for ColormapSelection
Source§fn eq(&self, other: &ColormapSelection) -> bool
fn eq(&self, other: &ColormapSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColormapSelection
Auto Trait Implementations§
impl Freeze for ColormapSelection
impl RefUnwindSafe for ColormapSelection
impl Send for ColormapSelection
impl Sync for ColormapSelection
impl Unpin for ColormapSelection
impl UnsafeUnpin for ColormapSelection
impl UnwindSafe for ColormapSelection
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