Struct EvaluatorBuilder
pub struct EvaluatorBuilder<B, TI, TO>{ /* private fields */ }Expand description
Struct to configure and create an evaluator.
The generics components of the builder should probably not be set manually, as they are optimized for Rust type inference.
Implementations§
§impl<B, TI, TO> EvaluatorBuilder<B, TI, TO>
impl<B, TI, TO> EvaluatorBuilder<B, TI, TO>
pub fn new(directory: impl AsRef<Path>) -> EvaluatorBuilder<B, TI, TO>
pub fn new(directory: impl AsRef<Path>) -> EvaluatorBuilder<B, TI, TO>
pub fn metrics<M>(self, metrics: M) -> EvaluatorBuilder<B, TI, TO>where
M: EvalMetricRegistration<TI, TO>,
pub fn metrics<M>(self, metrics: M) -> EvaluatorBuilder<B, TI, TO>where
M: EvalMetricRegistration<TI, TO>,
pub fn metrics_text<M>(self, metrics: M) -> EvaluatorBuilder<B, TI, TO>where
M: EvalTextMetricRegistration<TI, TO>,
pub fn metrics_text<M>(self, metrics: M) -> EvaluatorBuilder<B, TI, TO>where
M: EvalTextMetricRegistration<TI, TO>,
Registers text metrics.
pub fn with_application_logger(
self,
logger: Option<Box<dyn ApplicationLoggerInstaller>>,
) -> EvaluatorBuilder<B, TI, TO>
pub fn with_application_logger( self, logger: Option<Box<dyn ApplicationLoggerInstaller>>, ) -> EvaluatorBuilder<B, TI, TO>
By default, Rust logs are captured and written into
evaluation.log. If disabled, standard Rust log handling
will apply.
pub fn metric_numeric<Me>(self, metric: Me) -> EvaluatorBuilder<B, TI, TO>
pub fn metric_numeric<Me>(self, metric: Me) -> EvaluatorBuilder<B, TI, TO>
pub fn metric<Me>(self, metric: Me) -> EvaluatorBuilder<B, TI, TO>
pub fn metric<Me>(self, metric: Me) -> EvaluatorBuilder<B, TI, TO>
Register a text test metric.
pub fn renderer(
self,
renderer: Box<dyn MetricsRenderer>,
) -> EvaluatorBuilder<B, TI, TO>
pub fn renderer( self, renderer: Box<dyn MetricsRenderer>, ) -> EvaluatorBuilder<B, TI, TO>
pub fn summary(self) -> EvaluatorBuilder<B, TI, TO>
pub fn summary(self) -> EvaluatorBuilder<B, TI, TO>
Enable the evaluation summary report.
The summary will be displayed at the end of .eval().
Auto Trait Implementations§
impl<B, TI, TO> Freeze for EvaluatorBuilder<B, TI, TO>
impl<B, TI, TO> !RefUnwindSafe for EvaluatorBuilder<B, TI, TO>
impl<B, TI, TO> !Send for EvaluatorBuilder<B, TI, TO>
impl<B, TI, TO> !Sync for EvaluatorBuilder<B, TI, TO>
impl<B, TI, TO> Unpin for EvaluatorBuilder<B, TI, TO>
impl<B, TI, TO> !UnwindSafe for EvaluatorBuilder<B, TI, TO>
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