Enum inferno::flamegraph::color::BackgroundColor
source · pub enum BackgroundColor {
Yellow,
Blue,
Green,
Grey,
Flat(Color),
}
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§
Yellow
A yellow gradient from #EEEEEE
to #EEEEB0
.
Blue
A blue gradient from #EEEEEE
to #E0E0FF
.
Green
A green gradient from #EEF2EE
to #E0FFE0
.
Grey
A grey gradient from #F8F8F8
to #E8E8E8
.
Flat(Color)
A flag background color with the given RGB components.
Expressed in string form as #RRGGBB
where each component is written in hexadecimal.
Trait Implementations§
source§impl Clone for BackgroundColor
impl Clone for BackgroundColor
source§fn clone(&self) -> BackgroundColor
fn clone(&self) -> BackgroundColor
Returns a copy of the value. Read more
1.0.0 · 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 BackgroundColor
impl Debug for BackgroundColor
source§impl Default for BackgroundColor
impl Default for BackgroundColor
source§fn default() -> BackgroundColor
fn default() -> BackgroundColor
Returns the “default value” for a type. Read more
source§impl FromStr for BackgroundColor
impl FromStr for BackgroundColor
source§impl PartialEq for BackgroundColor
impl PartialEq for BackgroundColor
source§fn eq(&self, other: &BackgroundColor) -> bool
fn eq(&self, other: &BackgroundColor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BackgroundColor
impl Eq for BackgroundColor
impl StructuralEq for BackgroundColor
impl StructuralPartialEq for BackgroundColor
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§
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
§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.