pub struct ThemeUpdate {Show 22 fields
pub text: Option<ElementText>,
pub title: Option<ElementText>,
pub subtitle: Option<ElementText>,
pub caption: Option<ElementText>,
pub axis_text_x: Option<ElementText>,
pub axis_text_y: Option<ElementText>,
pub axis_title_x: Option<ElementText>,
pub axis_title_y: Option<ElementText>,
pub axis_line: Option<ElementLine>,
pub axis_ticks: Option<ElementLine>,
pub panel_background: Option<ElementRect>,
pub panel_grid_major: Option<ElementLine>,
pub panel_grid_minor: Option<ElementLine>,
pub panel_border: Option<ElementLine>,
pub plot_background: Option<ElementRect>,
pub legend_position: Option<LegendPosition>,
pub legend_title: Option<ElementText>,
pub legend_text: Option<ElementText>,
pub legend_background: Option<ElementRect>,
pub strip_text: Option<ElementText>,
pub strip_background: Option<ElementRect>,
pub plot_margin: Option<Margin>,
}Expand description
Incremental theme modifications. All fields are optional — only Some values are applied.
Like R’s theme(axis.text.x = element_text(...)).
Fields§
§text: Option<ElementText>§title: Option<ElementText>§subtitle: Option<ElementText>§caption: Option<ElementText>§axis_text_x: Option<ElementText>§axis_text_y: Option<ElementText>§axis_title_x: Option<ElementText>§axis_title_y: Option<ElementText>§axis_line: Option<ElementLine>§axis_ticks: Option<ElementLine>§panel_background: Option<ElementRect>§panel_grid_major: Option<ElementLine>§panel_grid_minor: Option<ElementLine>§panel_border: Option<ElementLine>§plot_background: Option<ElementRect>§legend_position: Option<LegendPosition>§legend_title: Option<ElementText>§legend_text: Option<ElementText>§legend_background: Option<ElementRect>§strip_text: Option<ElementText>§strip_background: Option<ElementRect>§plot_margin: Option<Margin>Trait Implementations§
Source§impl Clone for ThemeUpdate
impl Clone for ThemeUpdate
Source§fn clone(&self) -> ThemeUpdate
fn clone(&self) -> ThemeUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThemeUpdate
impl Debug for ThemeUpdate
Source§impl Default for ThemeUpdate
impl Default for ThemeUpdate
Source§fn default() -> ThemeUpdate
fn default() -> ThemeUpdate
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThemeUpdate
impl RefUnwindSafe for ThemeUpdate
impl Send for ThemeUpdate
impl Sync for ThemeUpdate
impl Unpin for ThemeUpdate
impl UnsafeUnpin for ThemeUpdate
impl UnwindSafe for ThemeUpdate
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,
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