pub enum BasicPalette {
Hot,
Mem,
Io,
Red,
Green,
Blue,
Aqua,
Yellow,
Purple,
Orange,
}Expand description
A plain color palette in which the color is not chosen based on function semantics.
Exactly how the color is chosen depends on a number of other configuration options like
[super::Options.consistent_palette] and [super::Options.hash]. In the absence of options
like that, these palettes all choose colors randomly from the indicated spectrum, and does not
consider the name of the frame’s function when doing so.
Variants§
Hot
A palette in which colors are chosen from a red-yellow spectrum.
Mem
A palette in which colors are chosen from a green-blue spectrum.
Io
A palette in which colors are chosen from a wide blue spectrum.
Red
A palette in which colors are chosen from a red spectrum.
Green
A palette in which colors are chosen from a green spectrum.
Blue
A palette in which colors are chosen from a blue spectrum.
Aqua
A palette in which colors are chosen from an aqua-tinted spectrum.
Yellow
A palette in which colors are chosen from a yellow spectrum.
Purple
A palette in which colors are chosen from a purple spectrum.
Orange
A palette in which colors are chosen from a orange spectrum.
Trait Implementations§
Source§impl Clone for BasicPalette
impl Clone for BasicPalette
Source§fn clone(&self) -> BasicPalette
fn clone(&self) -> BasicPalette
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BasicPalette
impl Debug for BasicPalette
Source§impl PartialEq for BasicPalette
impl PartialEq for BasicPalette
impl Copy for BasicPalette
impl Eq for BasicPalette
impl StructuralPartialEq for BasicPalette
Auto Trait Implementations§
impl Freeze for BasicPalette
impl RefUnwindSafe for BasicPalette
impl Send for BasicPalette
impl Sync for BasicPalette
impl Unpin for BasicPalette
impl UnwindSafe for BasicPalette
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more