Enum pprof::flamegraph::color::BackgroundColor [−][src]
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
.
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]
pub fn clone(&self) -> BackgroundColor
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BackgroundColor
[src]
impl Debug for BackgroundColor
[src]
impl Default for BackgroundColor
[src]
pub fn default() -> BackgroundColor
[src]
impl FromStr for BackgroundColor
[src]
type Err = String
The associated error which can be returned from parsing.
pub fn from_str(
s: &str
) -> Result<BackgroundColor, <BackgroundColor as FromStr>::Err>
[src]
s: &str
) -> Result<BackgroundColor, <BackgroundColor as FromStr>::Err>
impl PartialEq<BackgroundColor> for BackgroundColor
[src]
pub fn eq(&self, other: &BackgroundColor) -> bool
[src]
pub fn ne(&self, other: &BackgroundColor) -> bool
[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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,