pub enum NamedPalette {
Spectrum,
Ember,
Ice,
Mono,
Aurora,
}Expand description
A built-in named palette. Extend as later work curates more; unknown names are
rejected at the load boundary (schema.rs).
Variants§
Spectrum
The exact current iq cosine — the default, so shipped presets are
unchanged. d = (0.10, 0.42, 0.62) reproduces fragment_field/swarm.
Ember
Warm embers: deep red through orange to pale gold.
Ice
Cool ice: deep blue through cyan to near-white.
Mono
Grayscale black → white.
Aurora
Aurora: deep green through teal to violet.
Implementations§
Source§impl NamedPalette
impl NamedPalette
Sourcepub const ALL: [NamedPalette; 5]
pub const ALL: [NamedPalette; 5]
Every built-in palette, in roster order — the closed set, and the list the schema export renders rather than restating.
Trait Implementations§
Source§impl Clone for NamedPalette
impl Clone for NamedPalette
Source§fn clone(&self) -> NamedPalette
fn clone(&self) -> NamedPalette
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 moreSource§impl Debug for NamedPalette
impl Debug for NamedPalette
Source§impl PartialEq for NamedPalette
impl PartialEq for NamedPalette
Source§fn eq(&self, other: &NamedPalette) -> bool
fn eq(&self, other: &NamedPalette) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NamedPalette
impl Eq for NamedPalette
impl StructuralPartialEq for NamedPalette
Auto Trait Implementations§
impl Freeze for NamedPalette
impl RefUnwindSafe for NamedPalette
impl Send for NamedPalette
impl Sync for NamedPalette
impl Unpin for NamedPalette
impl UnsafeUnpin for NamedPalette
impl UnwindSafe for NamedPalette
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.