Struct EvaluatorBuilder
pub struct EvaluatorBuilder<EC>where
EC: EvaluatorComponentTypes,{ /* 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, M> EvaluatorBuilder<EvaluatorComponentTypesMarker<B, M>>
impl<B, M> EvaluatorBuilder<EvaluatorComponentTypesMarker<B, M>>
pub fn new(
directory: impl AsRef<Path>,
) -> EvaluatorBuilder<EvaluatorComponentTypesMarker<B, M>>
pub fn new( directory: impl AsRef<Path>, ) -> EvaluatorBuilder<EvaluatorComponentTypesMarker<B, M>>
§impl<EC> EvaluatorBuilder<EC>where
EC: EvaluatorComponentTypes,
impl<EC> EvaluatorBuilder<EC>where
EC: EvaluatorComponentTypes,
pub fn metrics<Me>(self, metrics: Me) -> EvaluatorBuilder<EC>where
Me: EvalMetricRegistration<EC>,
pub fn metrics<Me>(self, metrics: Me) -> EvaluatorBuilder<EC>where
Me: EvalMetricRegistration<EC>,
pub fn metrics_text<Me>(self, metrics: Me) -> EvaluatorBuilder<EC>where
Me: EvalTextMetricRegistration<EC>,
pub fn metrics_text<Me>(self, metrics: Me) -> EvaluatorBuilder<EC>where
Me: EvalTextMetricRegistration<EC>,
Registers text metrics.
pub fn with_application_logger(
self,
logger: Option<Box<dyn ApplicationLoggerInstaller>>,
) -> EvaluatorBuilder<EC>
pub fn with_application_logger( self, logger: Option<Box<dyn ApplicationLoggerInstaller>>, ) -> EvaluatorBuilder<EC>
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<EC>
pub fn metric_numeric<Me>(self, metric: Me) -> EvaluatorBuilder<EC>
pub fn metric<Me>(self, metric: Me) -> EvaluatorBuilder<EC>
pub fn metric<Me>(self, metric: Me) -> EvaluatorBuilder<EC>
Register a text test metric.
pub fn renderer(
self,
renderer: Box<dyn MetricsRenderer>,
) -> EvaluatorBuilder<EC>
pub fn renderer( self, renderer: Box<dyn MetricsRenderer>, ) -> EvaluatorBuilder<EC>
pub fn summary(self) -> EvaluatorBuilder<EC>
pub fn summary(self) -> EvaluatorBuilder<EC>
Enable the evaluation summary report.
The summary will be displayed at the end of .eval().
Auto Trait Implementations§
impl<EC> Freeze for EvaluatorBuilder<EC>
impl<EC> !RefUnwindSafe for EvaluatorBuilder<EC>
impl<EC> !Send for EvaluatorBuilder<EC>
impl<EC> !Sync for EvaluatorBuilder<EC>
impl<EC> Unpin for EvaluatorBuilder<EC>
impl<EC> !UnwindSafe for EvaluatorBuilder<EC>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more