Struct rstk::chart::time_chart::TkTimeChartDefinition
source · pub struct TkTimeChartDefinition { /* private fields */ }
Expand description
Intermediate definition for a time chart
Implementations§
source§impl TkTimeChartDefinition
impl TkTimeChartDefinition
Methods to set options for time-chart - call ‘plot’ method at end to finally create the chart.
sourcepub fn bar_height(&mut self, value: u64) -> &mut Self
pub fn bar_height(&mut self, value: u64) -> &mut Self
Adds information on the required height of each bar in pixels (to specify spacing).
sourcepub fn num_items(&mut self, value: u64) -> &mut Self
pub fn num_items(&mut self, value: u64) -> &mut Self
Adds information on the expected number of items (to specify spacing).
sourcepub fn ylabel_width(&mut self, value: u64) -> &mut Self
pub fn ylabel_width(&mut self, value: u64) -> &mut Self
Adds information on the width of each label, in pixels.
sourcepub fn plot(&self) -> TkTimeChart
pub fn plot(&self) -> TkTimeChart
Completes the definition of a time chart and creates the chart.
Trait Implementations§
source§impl Clone for TkTimeChartDefinition
impl Clone for TkTimeChartDefinition
source§fn clone(&self) -> TkTimeChartDefinition
fn clone(&self) -> TkTimeChartDefinition
Returns a copy of the value. Read more
1.0.0 · 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 TkTimeChartDefinition
impl Debug for TkTimeChartDefinition
source§impl PartialEq for TkTimeChartDefinition
impl PartialEq for TkTimeChartDefinition
source§fn eq(&self, other: &TkTimeChartDefinition) -> bool
fn eq(&self, other: &TkTimeChartDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TkTimeChartDefinition
Auto Trait Implementations§
impl RefUnwindSafe for TkTimeChartDefinition
impl Send for TkTimeChartDefinition
impl Sync for TkTimeChartDefinition
impl Unpin for TkTimeChartDefinition
impl UnwindSafe for TkTimeChartDefinition
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