Enum inferno::flamegraph::color::BasicPalette
source · 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.