pub struct EvalConfigBuilder { /* private fields */ }Expand description
Builder for EvalConfig.
Implementations§
Source§impl EvalConfigBuilder
impl EvalConfigBuilder
Sourcepub fn report_dir(self, path: impl Into<PathBuf>) -> Self
pub fn report_dir(self, path: impl Into<PathBuf>) -> Self
Set the report output directory.
Sourcepub fn viewing(self, viewing: ViewingCondition) -> Self
pub fn viewing(self, viewing: ViewingCondition) -> Self
Set the viewing condition.
Sourcepub fn metrics(self, metrics: MetricConfig) -> Self
pub fn metrics(self, metrics: MetricConfig) -> Self
Set which metrics to calculate.
Sourcepub fn quality_levels(self, levels: Vec<f64>) -> Self
pub fn quality_levels(self, levels: Vec<f64>) -> Self
Set quality levels to sweep.
Sourcepub fn build(self) -> EvalConfig
pub fn build(self) -> EvalConfig
Trait Implementations§
Source§impl Debug for EvalConfigBuilder
impl Debug for EvalConfigBuilder
Source§impl Default for EvalConfigBuilder
impl Default for EvalConfigBuilder
Source§fn default() -> EvalConfigBuilder
fn default() -> EvalConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EvalConfigBuilder
impl RefUnwindSafe for EvalConfigBuilder
impl Send for EvalConfigBuilder
impl Sync for EvalConfigBuilder
impl Unpin for EvalConfigBuilder
impl UnwindSafe for EvalConfigBuilder
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