Enum pprof::flamegraph::color::BackgroundColor [−][src]
pub enum BackgroundColor { Yellow, Blue, Green, Grey, Flat(RGB<u8>), }
Expand description
A flame graph background color.
The default background color usually depends on the color scheme:
BasicPalette::Mem
defaults toBackgroundColor::Green
.BasicPalette::Io
andMultiPalette::Wakeup
default toBackgroundColor::Blue
.BasicPalette::Hot
defaults toBackgroundColor::Yellow
.- All other
BasicPalette
variants default toBackgroundColor::Grey
. - All other
MultiPalette
variants default toBackgroundColor::Yellow
.
BackgroundColor::default()
is Yellow
.
Variants
A yellow gradient from #EEEEEE
to #EEEEB0
.
A blue gradient from #EEEEEE
to #E0E0FF
.
A green gradient from #EEF2EE
to #E0FFE0
.
A grey gradient from #F8F8F8
to #E8E8E8
.
Flat(RGB<u8>)
A flag background color with the given RGB components.
Expressed in string form as #RRGGBB
where each component is written in hexadecimal.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BackgroundColor
impl Send for BackgroundColor
impl Sync for BackgroundColor
impl Unpin for BackgroundColor
impl UnwindSafe for BackgroundColor
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V