Enum inferno::flamegraph::color::BackgroundColor [−][src]
pub enum BackgroundColor { Yellow, Blue, Green, Grey, Flat(Color), }
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(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
impl Clone for BackgroundColor
[src][+]
impl Copy for BackgroundColor
[src]
impl Debug for BackgroundColor
[src][+]
impl Default for BackgroundColor
[src][+]
impl FromStr for BackgroundColor
[src][+]
impl PartialEq<BackgroundColor> for BackgroundColor
[src][+]
impl StructuralPartialEq for BackgroundColor
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,