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::Memdefaults toBackgroundColor::Green.BasicPalette::IoandMultiPalette::Wakeupdefault toBackgroundColor::Blue.BasicPalette::Hotdefaults toBackgroundColor::Yellow.- All other
BasicPalettevariants default toBackgroundColor::Grey. - All other
MultiPalettevariants 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(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§
Source§impl Clone for BackgroundColor
impl Clone for BackgroundColor
Source§fn clone(&self) -> BackgroundColor
fn clone(&self) -> BackgroundColor
Returns a duplicate 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
impl Copy for BackgroundColor
impl Eq for BackgroundColor
impl StructuralPartialEq for BackgroundColor
Auto Trait Implementations§
impl Freeze for BackgroundColor
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
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
Compare self to
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>
Converts
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>
Converts
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