pub struct BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S: State> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S: State> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S>
Sourcepub fn build(self) -> BarPlotwhere
S: IsComplete,
pub fn build(self) -> BarPlotwhere
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn data(
self,
value: &'f1 DataFrame,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetData<S>>where
S::Data: IsUnset,
pub fn data(
self,
value: &'f1 DataFrame,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetData<S>>where
S::Data: IsUnset,
Required.
Sourcepub fn labels(
self,
value: &'f2 str,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetLabels<S>>where
S::Labels: IsUnset,
pub fn labels(
self,
value: &'f2 str,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetLabels<S>>where
S::Labels: IsUnset,
Required.
Sourcepub fn values(
self,
value: &'f3 str,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetValues<S>>where
S::Values: IsUnset,
pub fn values(
self,
value: &'f3 str,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetValues<S>>where
S::Values: IsUnset,
Required.
Sourcepub fn orientation(
self,
value: Orientation,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetOrientation<S>>where
S::Orientation: IsUnset,
pub fn orientation(
self,
value: Orientation,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetOrientation<S>>where
S::Orientation: IsUnset,
Sourcepub fn maybe_orientation(
self,
value: Option<Orientation>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetOrientation<S>>where
S::Orientation: IsUnset,
pub fn maybe_orientation(
self,
value: Option<Orientation>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetOrientation<S>>where
S::Orientation: IsUnset,
Sourcepub fn group(
self,
value: &'f4 str,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetGroup<S>>where
S::Group: IsUnset,
pub fn group(
self,
value: &'f4 str,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetGroup<S>>where
S::Group: IsUnset,
Sourcepub fn maybe_group(
self,
value: Option<&'f4 str>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetGroup<S>>where
S::Group: IsUnset,
pub fn maybe_group(
self,
value: Option<&'f4 str>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetGroup<S>>where
S::Group: IsUnset,
Sourcepub fn sort_groups_by(
self,
value: fn(&str, &str) -> Ordering,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetSortGroupsBy<S>>where
S::SortGroupsBy: IsUnset,
pub fn sort_groups_by(
self,
value: fn(&str, &str) -> Ordering,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetSortGroupsBy<S>>where
S::SortGroupsBy: IsUnset,
Sourcepub fn maybe_sort_groups_by(
self,
value: Option<fn(&str, &str) -> Ordering>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetSortGroupsBy<S>>where
S::SortGroupsBy: IsUnset,
pub fn maybe_sort_groups_by(
self,
value: Option<fn(&str, &str) -> Ordering>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetSortGroupsBy<S>>where
S::SortGroupsBy: IsUnset,
Sourcepub fn facet(
self,
value: &'f5 str,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetFacet<S>>where
S::Facet: IsUnset,
pub fn facet(
self,
value: &'f5 str,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetFacet<S>>where
S::Facet: IsUnset,
Sourcepub fn maybe_facet(
self,
value: Option<&'f5 str>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetFacet<S>>where
S::Facet: IsUnset,
pub fn maybe_facet(
self,
value: Option<&'f5 str>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetFacet<S>>where
S::Facet: IsUnset,
Sourcepub fn facet_config(
self,
value: &'f6 FacetConfig,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetFacetConfig<S>>where
S::FacetConfig: IsUnset,
pub fn facet_config(
self,
value: &'f6 FacetConfig,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetFacetConfig<S>>where
S::FacetConfig: IsUnset,
Sourcepub fn maybe_facet_config(
self,
value: Option<&'f6 FacetConfig>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetFacetConfig<S>>where
S::FacetConfig: IsUnset,
pub fn maybe_facet_config(
self,
value: Option<&'f6 FacetConfig>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetFacetConfig<S>>where
S::FacetConfig: IsUnset,
Sourcepub fn error(
self,
value: &'f7 str,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetError<S>>where
S::Error: IsUnset,
pub fn error(
self,
value: &'f7 str,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetError<S>>where
S::Error: IsUnset,
Sourcepub fn maybe_error(
self,
value: Option<&'f7 str>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetError<S>>where
S::Error: IsUnset,
pub fn maybe_error(
self,
value: Option<&'f7 str>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetError<S>>where
S::Error: IsUnset,
Sourcepub fn color(
self,
value: Rgb,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetColor<S>>where
S::Color: IsUnset,
pub fn color(
self,
value: Rgb,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetColor<S>>where
S::Color: IsUnset,
Sourcepub fn maybe_color(
self,
value: Option<Rgb>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetColor<S>>where
S::Color: IsUnset,
pub fn maybe_color(
self,
value: Option<Rgb>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetColor<S>>where
S::Color: IsUnset,
Sourcepub fn colors(
self,
value: Vec<Rgb>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetColors<S>>where
S::Colors: IsUnset,
pub fn colors(
self,
value: Vec<Rgb>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetColors<S>>where
S::Colors: IsUnset,
Sourcepub fn maybe_colors(
self,
value: Option<Vec<Rgb>>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetColors<S>>where
S::Colors: IsUnset,
pub fn maybe_colors(
self,
value: Option<Vec<Rgb>>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetColors<S>>where
S::Colors: IsUnset,
Sourcepub fn mode(
self,
value: BarMode,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetMode<S>>where
S::Mode: IsUnset,
pub fn mode(
self,
value: BarMode,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetMode<S>>where
S::Mode: IsUnset,
Sourcepub fn maybe_mode(
self,
value: Option<BarMode>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetMode<S>>where
S::Mode: IsUnset,
pub fn maybe_mode(
self,
value: Option<BarMode>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetMode<S>>where
S::Mode: IsUnset,
Sourcepub fn plot_title(
self,
value: impl Into<Text>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetPlotTitle<S>>where
S::PlotTitle: IsUnset,
pub fn plot_title(
self,
value: impl Into<Text>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetPlotTitle<S>>where
S::PlotTitle: IsUnset,
Sourcepub fn maybe_plot_title(
self,
value: Option<impl Into<Text>>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetPlotTitle<S>>where
S::PlotTitle: IsUnset,
pub fn maybe_plot_title(
self,
value: Option<impl Into<Text>>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetPlotTitle<S>>where
S::PlotTitle: IsUnset,
Sourcepub fn x_title(
self,
value: impl Into<Text>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetXTitle<S>>where
S::XTitle: IsUnset,
pub fn x_title(
self,
value: impl Into<Text>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetXTitle<S>>where
S::XTitle: IsUnset,
Sourcepub fn maybe_x_title(
self,
value: Option<impl Into<Text>>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetXTitle<S>>where
S::XTitle: IsUnset,
pub fn maybe_x_title(
self,
value: Option<impl Into<Text>>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetXTitle<S>>where
S::XTitle: IsUnset,
Sourcepub fn y_title(
self,
value: impl Into<Text>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetYTitle<S>>where
S::YTitle: IsUnset,
pub fn y_title(
self,
value: impl Into<Text>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetYTitle<S>>where
S::YTitle: IsUnset,
Sourcepub fn maybe_y_title(
self,
value: Option<impl Into<Text>>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetYTitle<S>>where
S::YTitle: IsUnset,
pub fn maybe_y_title(
self,
value: Option<impl Into<Text>>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetYTitle<S>>where
S::YTitle: IsUnset,
Sourcepub fn legend_title(
self,
value: impl Into<Text>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetLegendTitle<S>>where
S::LegendTitle: IsUnset,
pub fn legend_title(
self,
value: impl Into<Text>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetLegendTitle<S>>where
S::LegendTitle: IsUnset,
Sourcepub fn maybe_legend_title(
self,
value: Option<impl Into<Text>>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetLegendTitle<S>>where
S::LegendTitle: IsUnset,
pub fn maybe_legend_title(
self,
value: Option<impl Into<Text>>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetLegendTitle<S>>where
S::LegendTitle: IsUnset,
Sourcepub fn x_axis(
self,
value: &'f8 Axis,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetXAxis<S>>where
S::XAxis: IsUnset,
pub fn x_axis(
self,
value: &'f8 Axis,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetXAxis<S>>where
S::XAxis: IsUnset,
Sourcepub fn maybe_x_axis(
self,
value: Option<&'f8 Axis>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetXAxis<S>>where
S::XAxis: IsUnset,
pub fn maybe_x_axis(
self,
value: Option<&'f8 Axis>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetXAxis<S>>where
S::XAxis: IsUnset,
Sourcepub fn y_axis(
self,
value: &'f9 Axis,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetYAxis<S>>where
S::YAxis: IsUnset,
pub fn y_axis(
self,
value: &'f9 Axis,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetYAxis<S>>where
S::YAxis: IsUnset,
Sourcepub fn maybe_y_axis(
self,
value: Option<&'f9 Axis>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetYAxis<S>>where
S::YAxis: IsUnset,
pub fn maybe_y_axis(
self,
value: Option<&'f9 Axis>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetYAxis<S>>where
S::YAxis: IsUnset,
Sourcepub fn legend(
self,
value: &'f10 Legend,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetLegend<S>>where
S::Legend: IsUnset,
pub fn legend(
self,
value: &'f10 Legend,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetLegend<S>>where
S::Legend: IsUnset,
Sourcepub fn maybe_legend(
self,
value: Option<&'f10 Legend>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetLegend<S>>where
S::Legend: IsUnset,
pub fn maybe_legend(
self,
value: Option<&'f10 Legend>,
) -> BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, SetLegend<S>>where
S::Legend: IsUnset,
Auto Trait Implementations§
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S> Freeze for BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S = Empty> !RefUnwindSafe for BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S> Send for BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S> Sync for BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S> Unpin for BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S> UnsafeUnpin for BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S = Empty> !UnwindSafe for BarPlotBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 'f10, S>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more