pub enum ChartCommand {
SetOption(Box<ChartOption>),
Resize(f64, f64),
Action(ChartAction),
}Expand description
A command for a chart.
The commands are what a handle sends to a chart. They are the same actions a chart takes on itself — drawing a new option, resizing, performing an action — and they travel through a signal, the way the rest of euv talks to its parts.
The option is boxed: an option is thousands of bytes, and a queue of commands should not be as big as the options it carries.
Every variant carries data, and #[derive(Default)] needs one
without any, so this enum has no default.
Variants§
SetOption(Box<ChartOption>)
Draws the chart with the given option.
Resize(f64, f64)
Draws the chart at the given size, in CSS pixels.
Action(ChartAction)
Performs an action on the chart.
Trait Implementations§
Source§impl Clone for ChartCommand
impl Clone for ChartCommand
Source§impl Debug for ChartCommand
impl Debug for ChartCommand
Source§impl PartialEq for ChartCommand
impl PartialEq for ChartCommand
impl StructuralPartialEq for ChartCommand
Auto Trait Implementations§
impl Freeze for ChartCommand
impl RefUnwindSafe for ChartCommand
impl Send for ChartCommand
impl Sync for ChartCommand
impl Unpin for ChartCommand
impl UnsafeUnpin for ChartCommand
impl UnwindSafe for ChartCommand
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