pub struct EstimatorBuilder<F: Clone, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<F: Clone, S: State> EstimatorBuilder<F, S>
impl<F: Clone, S: State> EstimatorBuilder<F, S>
Sourcepub fn build(self) -> Estimator<F>where
S: IsComplete,
pub fn build(self) -> Estimator<F>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn from(self, value: F) -> EstimatorBuilder<F, SetFrom<S>>where
S::From: IsUnset,
pub fn from(self, value: F) -> EstimatorBuilder<F, SetFrom<S>>where
S::From: IsUnset,
Required.
Sourcepub fn indices(self, value: Vec<usize>) -> EstimatorBuilder<F, SetIndices<S>>where
S::Indices: IsUnset,
pub fn indices(self, value: Vec<usize>) -> EstimatorBuilder<F, SetIndices<S>>where
S::Indices: IsUnset,
Required.
Auto Trait Implementations§
impl<F, S> Freeze for EstimatorBuilder<F, S>where
F: Freeze,
impl<F, S> RefUnwindSafe for EstimatorBuilder<F, S>where
F: RefUnwindSafe,
impl<F, S> Send for EstimatorBuilder<F, S>where
F: Send,
impl<F, S> Sync for EstimatorBuilder<F, S>where
F: Sync,
impl<F, S> Unpin for EstimatorBuilder<F, S>where
F: Unpin,
impl<F, S> UnsafeUnpin for EstimatorBuilder<F, S>where
F: UnsafeUnpin,
impl<F, S> UnwindSafe for EstimatorBuilder<F, S>where
F: UnwindSafe,
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> 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