pub struct StageBuilder { /* private fields */ }Expand description
Builder for constructing stages.
Implementations§
Source§impl StageBuilder
impl StageBuilder
Sourcepub fn ground_truth_stats(self, mean: f32, std: f32) -> Self
pub fn ground_truth_stats(self, mean: f32, std: f32) -> Self
Set the ground truth from statistics.
Sourcepub fn ground_truth(self, gt: GroundTruth) -> Self
pub fn ground_truth(self, gt: GroundTruth) -> Self
Set the ground truth from a GroundTruth instance.
Sourcepub fn description(self, desc: impl Into<String>) -> Self
pub fn description(self, desc: impl Into<String>) -> Self
Set a description.
Sourcepub fn build_stage(self) -> Stage
pub fn build_stage(self) -> Stage
Build the stage and return control to the pipeline builder.
This is for fluent API usage with PipelineBuilder.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StageBuilder
impl RefUnwindSafe for StageBuilder
impl Send for StageBuilder
impl Sync for StageBuilder
impl Unpin for StageBuilder
impl UnwindSafe for StageBuilder
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