pub struct Theme {
pub name: &'static str,
pub axis: Rgb,
pub title: Rgb,
pub accent: Rgb,
pub palette: Vec<Rgb>,
/* private fields */
}Fields§
§name: &'static str§axis: Rgb§title: Rgb§accent: RgbSingle-series accent color.
palette: Vec<Rgb>Implementations§
Source§impl Theme
impl Theme
Sourcepub fn series(&self, i: usize) -> Rgb
pub fn series(&self, i: usize) -> Rgb
The i-th series color. Wraps past the palette end: safe for categorical BARS (each bar is position-identified by its x label; color is decoration) — xy callers are guarded by compile’s palette cap, which rejects charts where color alone must distinguish more series than the palette holds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Theme
impl RefUnwindSafe for Theme
impl Send for Theme
impl Sync for Theme
impl Unpin for Theme
impl UnsafeUnpin for Theme
impl UnwindSafe for Theme
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