pub enum Command {
Show 21 variants
SetChartTitle {
old: String,
new: String,
},
SetAxisLabel {
axis: AxisKind,
old: String,
new: String,
},
SetAxisLabelFontSize {
axis: AxisKind,
old: u32,
new: u32,
},
SetAxisScale {
axis: AxisKind,
old: ScaleType,
new: ScaleType,
},
SetAxisRange {
axis: AxisKind,
old: RangePolicy,
new: RangePolicy,
},
SetAxisMajorTickStep {
axis: AxisKind,
old: Option<f64>,
new: Option<f64>,
},
SetAxisMinorTicks {
axis: AxisKind,
old: u16,
new: u16,
},
ReplaceAxisConfig {
axis: AxisKind,
old: AxisConfig,
new: AxisConfig,
},
AddSeries {
series: SeriesModel,
index: usize,
},
RemoveSeries {
series: SeriesModel,
index: usize,
},
RenameSeries {
series_id: SeriesId,
old: String,
new: String,
},
SetSeriesVisibility {
series_id: SeriesId,
old: bool,
new: bool,
},
SetSeriesXColumn {
series_id: SeriesId,
old: String,
new: String,
},
SetSeriesYColumn {
series_id: SeriesId,
old: String,
new: String,
},
SetSeriesLineWidth {
series_id: SeriesId,
old: f32,
new: f32,
},
SetSeriesLineStyle {
series_id: SeriesId,
old: LineStyle,
new: LineStyle,
},
SetSeriesColor {
series_id: SeriesId,
old: Color,
new: Color,
},
SetSeriesMarker {
series_id: SeriesId,
old: Option<MarkerStyle>,
new: Option<MarkerStyle>,
},
ReplaceLegend {
old: LegendConfig,
new: LegendConfig,
},
ReplaceLayout {
old: LayoutConfig,
new: LayoutConfig,
},
Batch {
commands: Vec<Command>,
},
}Expand description
EN: Mutations with old/new values for undo/redo-safe state transitions. RU: Izmeneniya sostoyaniya s old/new dlya bezopasnogo undo/redo.
Variants§
SetChartTitle
SetAxisLabel
SetAxisLabelFontSize
SetAxisScale
SetAxisRange
SetAxisMajorTickStep
SetAxisMinorTicks
ReplaceAxisConfig
AddSeries
RemoveSeries
RenameSeries
SetSeriesVisibility
SetSeriesXColumn
SetSeriesYColumn
SetSeriesLineWidth
SetSeriesLineStyle
SetSeriesColor
SetSeriesMarker
ReplaceLegend
ReplaceLayout
Batch
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.