pub enum DrawStyle {
Precise,
Sketch(SketchOptions),
Milkyway(MilkywayOptions),
Constellation(ConstellationOptions),
}Expand description
Chart-global render style. Precise is the default scientific path;
every other variant is an opt-in stylized mode with its own GPU
pipeline variants and decoration stroker.
Variants§
Implementations§
Source§impl DrawStyle
impl DrawStyle
Sourcepub fn is_precise(&self) -> bool
pub fn is_precise(&self) -> bool
True for the default scientific path (used by serde skip).
Sourcepub fn sketch(&self) -> Option<&SketchOptions>
pub fn sketch(&self) -> Option<&SketchOptions>
Sketch parameters when the sketch style is active.
Sourcepub fn milkyway(&self) -> Option<&MilkywayOptions>
pub fn milkyway(&self) -> Option<&MilkywayOptions>
Milkyway parameters when the milkyway style is active.
Sourcepub fn constellation(&self) -> Option<&ConstellationOptions>
pub fn constellation(&self) -> Option<&ConstellationOptions>
Constellation parameters when the constellation style is active.
Every mode tag, in declaration order — the values valid as the JSON
"mode" of draw_style.
Sourcepub fn param_specs_for_mode(mode: &str) -> Option<&'static [StyleParamSpec]>
pub fn param_specs_for_mode(mode: &str) -> Option<&'static [StyleParamSpec]>
Parameter metadata for one mode tag. precise has no parameters
(empty slice); unknown tags yield None. Hosts generate their
parameter UI (sliders/steppers) from this instead of hardcoding
ranges.
Trait Implementations§
impl Copy for DrawStyle
Source§impl<'de> Deserialize<'de> for DrawStyle
impl<'de> Deserialize<'de> for DrawStyle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DrawStyle
Auto Trait Implementations§
impl Freeze for DrawStyle
impl RefUnwindSafe for DrawStyle
impl Send for DrawStyle
impl Sync for DrawStyle
impl Unpin for DrawStyle
impl UnsafeUnpin for DrawStyle
impl UnwindSafe for DrawStyle
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