#[non_exhaustive]pub struct DistributionDataBuilder { /* private fields */ }Expand description
A builder for DistributionData.
Implementations§
Source§impl DistributionDataBuilder
impl DistributionDataBuilder
Sourcepub fn bin_edges(self, input: impl Into<String>) -> Self
pub fn bin_edges(self, input: impl Into<String>) -> Self
Appends an item to bin_edges.
To override the contents of this collection use set_bin_edges.
The bin edge values for the distribution.
Sourcepub fn set_bin_edges(self, input: Option<Vec<String>>) -> Self
pub fn set_bin_edges(self, input: Option<Vec<String>>) -> Self
The bin edge values for the distribution.
Sourcepub fn get_bin_edges(&self) -> &Option<Vec<String>>
pub fn get_bin_edges(&self) -> &Option<Vec<String>>
The bin edge values for the distribution.
Sourcepub fn count(self, input: i32) -> Self
pub fn count(self, input: i32) -> Self
Appends an item to count.
To override the contents of this collection use set_count.
The frequency count for each bin in the distribution.
Sourcepub fn set_count(self, input: Option<Vec<i32>>) -> Self
pub fn set_count(self, input: Option<Vec<i32>>) -> Self
The frequency count for each bin in the distribution.
Sourcepub fn get_count(&self) -> &Option<Vec<i32>>
pub fn get_count(&self) -> &Option<Vec<i32>>
The frequency count for each bin in the distribution.
Sourcepub fn data_type(self, input: impl Into<String>) -> Self
pub fn data_type(self, input: impl Into<String>) -> Self
The data type of the column for the distribution.
Sourcepub fn set_data_type(self, input: Option<String>) -> Self
pub fn set_data_type(self, input: Option<String>) -> Self
The data type of the column for the distribution.
Sourcepub fn get_data_type(&self) -> &Option<String>
pub fn get_data_type(&self) -> &Option<String>
The data type of the column for the distribution.
Sourcepub fn build(self) -> DistributionData
pub fn build(self) -> DistributionData
Consumes the builder and constructs a DistributionData.
Trait Implementations§
Source§impl Clone for DistributionDataBuilder
impl Clone for DistributionDataBuilder
Source§fn clone(&self) -> DistributionDataBuilder
fn clone(&self) -> DistributionDataBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DistributionDataBuilder
impl Debug for DistributionDataBuilder
Source§impl Default for DistributionDataBuilder
impl Default for DistributionDataBuilder
Source§fn default() -> DistributionDataBuilder
fn default() -> DistributionDataBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for DistributionDataBuilder
impl PartialEq for DistributionDataBuilder
impl StructuralPartialEq for DistributionDataBuilder
Auto Trait Implementations§
impl Freeze for DistributionDataBuilder
impl RefUnwindSafe for DistributionDataBuilder
impl Send for DistributionDataBuilder
impl Sync for DistributionDataBuilder
impl Unpin for DistributionDataBuilder
impl UnsafeUnpin for DistributionDataBuilder
impl UnwindSafe for DistributionDataBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.