pub struct PlotTheme {
pub background: Rgba,
pub plot_background: Rgba,
pub text: Rgba,
pub axis: Rgba,
pub grid: Rgba,
pub palette: Vec<Rgba>,
}Expand description
Theme colors for a headless chart.
Fields§
§background: RgbaCanvas fill.
plot_background: RgbaPlot area fill inside the axes.
text: RgbaTitle and label color.
axis: RgbaAxis and frame color.
grid: RgbaGrid color.
palette: Vec<Rgba>Series palette, used when a series has no color.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlotTheme
impl<'de> Deserialize<'de> for PlotTheme
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlotTheme, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlotTheme, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PlotTheme
impl Serialize for PlotTheme
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PlotTheme
Auto Trait Implementations§
impl Forget for PlotTheme
impl Freeze for PlotTheme
impl Move for PlotTheme
impl RefUnwindSafe for PlotTheme
impl Send for PlotThemewhere
RawVecInner: Send,
impl Sync for PlotThemewhere
RawVecInner: Sync,
impl Unpin for PlotTheme
impl UnsafeUnpin for PlotTheme
impl UnwindSafe for PlotThemewhere
RawVecInner: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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