pub struct HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with try_build().
Implementations§
Source§impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S: State> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S: State> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>
Sourcepub fn try_build(self) -> Result<Histogram, PlotlarsError>where
S: IsComplete,
pub fn try_build(self) -> Result<Histogram, PlotlarsError>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn data(
self,
value: &'f1 DataFrame,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetData<S>>where
S::Data: IsUnset,
pub fn data(
self,
value: &'f1 DataFrame,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetData<S>>where
S::Data: IsUnset,
Required.
Sourcepub fn x(
self,
value: &'f2 str,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetX<S>>where
S::X: IsUnset,
pub fn x(
self,
value: &'f2 str,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetX<S>>where
S::X: IsUnset,
Required.
Sourcepub fn group(
self,
value: &'f3 str,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetGroup<S>>where
S::Group: IsUnset,
pub fn group(
self,
value: &'f3 str,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetGroup<S>>where
S::Group: IsUnset,
Sourcepub fn maybe_group(
self,
value: Option<&'f3 str>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetGroup<S>>where
S::Group: IsUnset,
pub fn maybe_group(
self,
value: Option<&'f3 str>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetGroup<S>>where
S::Group: IsUnset,
Sourcepub fn sort_groups_by(
self,
value: fn(&str, &str) -> Ordering,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetSortGroupsBy<S>>where
S::SortGroupsBy: IsUnset,
pub fn sort_groups_by(
self,
value: fn(&str, &str) -> Ordering,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetSortGroupsBy<S>>where
S::SortGroupsBy: IsUnset,
Sourcepub fn maybe_sort_groups_by(
self,
value: Option<fn(&str, &str) -> Ordering>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetSortGroupsBy<S>>where
S::SortGroupsBy: IsUnset,
pub fn maybe_sort_groups_by(
self,
value: Option<fn(&str, &str) -> Ordering>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetSortGroupsBy<S>>where
S::SortGroupsBy: IsUnset,
Sourcepub fn facet(
self,
value: &'f4 str,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFacet<S>>where
S::Facet: IsUnset,
pub fn facet(
self,
value: &'f4 str,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFacet<S>>where
S::Facet: IsUnset,
Sourcepub fn maybe_facet(
self,
value: Option<&'f4 str>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFacet<S>>where
S::Facet: IsUnset,
pub fn maybe_facet(
self,
value: Option<&'f4 str>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFacet<S>>where
S::Facet: IsUnset,
Sourcepub fn facet_config(
self,
value: &'f5 FacetConfig,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFacetConfig<S>>where
S::FacetConfig: IsUnset,
pub fn facet_config(
self,
value: &'f5 FacetConfig,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFacetConfig<S>>where
S::FacetConfig: IsUnset,
Sourcepub fn maybe_facet_config(
self,
value: Option<&'f5 FacetConfig>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFacetConfig<S>>where
S::FacetConfig: IsUnset,
pub fn maybe_facet_config(
self,
value: Option<&'f5 FacetConfig>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetFacetConfig<S>>where
S::FacetConfig: IsUnset,
Sourcepub fn opacity(
self,
value: f64,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetOpacity<S>>where
S::Opacity: IsUnset,
pub fn opacity(
self,
value: f64,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetOpacity<S>>where
S::Opacity: IsUnset,
Sourcepub fn maybe_opacity(
self,
value: Option<f64>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetOpacity<S>>where
S::Opacity: IsUnset,
pub fn maybe_opacity(
self,
value: Option<f64>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetOpacity<S>>where
S::Opacity: IsUnset,
Sourcepub fn color(
self,
value: Rgb,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetColor<S>>where
S::Color: IsUnset,
pub fn color(
self,
value: Rgb,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetColor<S>>where
S::Color: IsUnset,
Sourcepub fn maybe_color(
self,
value: Option<Rgb>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetColor<S>>where
S::Color: IsUnset,
pub fn maybe_color(
self,
value: Option<Rgb>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetColor<S>>where
S::Color: IsUnset,
Sourcepub fn colors(
self,
value: Vec<Rgb>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetColors<S>>where
S::Colors: IsUnset,
pub fn colors(
self,
value: Vec<Rgb>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetColors<S>>where
S::Colors: IsUnset,
Sourcepub fn maybe_colors(
self,
value: Option<Vec<Rgb>>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetColors<S>>where
S::Colors: IsUnset,
pub fn maybe_colors(
self,
value: Option<Vec<Rgb>>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetColors<S>>where
S::Colors: IsUnset,
Sourcepub fn plot_title(
self,
value: impl Into<Text>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetPlotTitle<S>>where
S::PlotTitle: IsUnset,
pub fn plot_title(
self,
value: impl Into<Text>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetPlotTitle<S>>where
S::PlotTitle: IsUnset,
Sourcepub fn maybe_plot_title(
self,
value: Option<impl Into<Text>>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetPlotTitle<S>>where
S::PlotTitle: IsUnset,
pub fn maybe_plot_title(
self,
value: Option<impl Into<Text>>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetPlotTitle<S>>where
S::PlotTitle: IsUnset,
Sourcepub fn x_title(
self,
value: impl Into<Text>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetXTitle<S>>where
S::XTitle: IsUnset,
pub fn x_title(
self,
value: impl Into<Text>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetXTitle<S>>where
S::XTitle: IsUnset,
Sourcepub fn maybe_x_title(
self,
value: Option<impl Into<Text>>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetXTitle<S>>where
S::XTitle: IsUnset,
pub fn maybe_x_title(
self,
value: Option<impl Into<Text>>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetXTitle<S>>where
S::XTitle: IsUnset,
Sourcepub fn y_title(
self,
value: impl Into<Text>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetYTitle<S>>where
S::YTitle: IsUnset,
pub fn y_title(
self,
value: impl Into<Text>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetYTitle<S>>where
S::YTitle: IsUnset,
Sourcepub fn maybe_y_title(
self,
value: Option<impl Into<Text>>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetYTitle<S>>where
S::YTitle: IsUnset,
pub fn maybe_y_title(
self,
value: Option<impl Into<Text>>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetYTitle<S>>where
S::YTitle: IsUnset,
Sourcepub fn legend_title(
self,
value: impl Into<Text>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetLegendTitle<S>>where
S::LegendTitle: IsUnset,
pub fn legend_title(
self,
value: impl Into<Text>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetLegendTitle<S>>where
S::LegendTitle: IsUnset,
Sourcepub fn maybe_legend_title(
self,
value: Option<impl Into<Text>>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetLegendTitle<S>>where
S::LegendTitle: IsUnset,
pub fn maybe_legend_title(
self,
value: Option<impl Into<Text>>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetLegendTitle<S>>where
S::LegendTitle: IsUnset,
Sourcepub fn x_axis(
self,
value: &'f6 Axis,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetXAxis<S>>where
S::XAxis: IsUnset,
pub fn x_axis(
self,
value: &'f6 Axis,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetXAxis<S>>where
S::XAxis: IsUnset,
Sourcepub fn maybe_x_axis(
self,
value: Option<&'f6 Axis>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetXAxis<S>>where
S::XAxis: IsUnset,
pub fn maybe_x_axis(
self,
value: Option<&'f6 Axis>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetXAxis<S>>where
S::XAxis: IsUnset,
Sourcepub fn y_axis(
self,
value: &'f7 Axis,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetYAxis<S>>where
S::YAxis: IsUnset,
pub fn y_axis(
self,
value: &'f7 Axis,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetYAxis<S>>where
S::YAxis: IsUnset,
Sourcepub fn maybe_y_axis(
self,
value: Option<&'f7 Axis>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetYAxis<S>>where
S::YAxis: IsUnset,
pub fn maybe_y_axis(
self,
value: Option<&'f7 Axis>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetYAxis<S>>where
S::YAxis: IsUnset,
Sourcepub fn legend(
self,
value: &'f8 Legend,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetLegend<S>>where
S::Legend: IsUnset,
pub fn legend(
self,
value: &'f8 Legend,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetLegend<S>>where
S::Legend: IsUnset,
Sourcepub fn maybe_legend(
self,
value: Option<&'f8 Legend>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetLegend<S>>where
S::Legend: IsUnset,
pub fn maybe_legend(
self,
value: Option<&'f8 Legend>,
) -> HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, SetLegend<S>>where
S::Legend: IsUnset,
Auto Trait Implementations§
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S> Freeze for HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S = Empty> !RefUnwindSafe for HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S> Send for HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S> Sync for HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S> Unpin for HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S> UnsafeUnpin for HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, S = Empty> !UnwindSafe for HistogramTryBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 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