pub struct EvaluatorBuilder<B: Backend, TI, TO: ItemLazy> { /* 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§
Source§impl<B: Backend, TI, TO: ItemLazy + 'static> EvaluatorBuilder<B, TI, TO>
impl<B: Backend, TI, TO: ItemLazy + 'static> EvaluatorBuilder<B, TI, TO>
Sourcepub fn metrics<M: EvalMetricRegistration<TI, TO>>(self, metrics: M) -> Self
pub fn metrics<M: EvalMetricRegistration<TI, TO>>(self, metrics: M) -> Self
Sourcepub fn metrics_text<M: EvalTextMetricRegistration<TI, TO>>(
self,
metrics: M,
) -> Self
pub fn metrics_text<M: EvalTextMetricRegistration<TI, TO>>( self, metrics: M, ) -> Self
Registers text metrics.
Sourcepub fn with_application_logger(
self,
logger: Option<Box<dyn ApplicationLoggerInstaller>>,
) -> Self
pub fn with_application_logger( self, logger: Option<Box<dyn ApplicationLoggerInstaller>>, ) -> Self
By default, Rust logs are captured and written into
evaluation.log. If disabled, standard Rust log handling
will apply.
Sourcepub fn metric_numeric<Me: Metric + Numeric + 'static>(self, metric: Me) -> Self
pub fn metric_numeric<Me: Metric + Numeric + 'static>(self, metric: Me) -> Self
Sourcepub fn renderer(self, renderer: Box<dyn MetricsRenderer + 'static>) -> Self
pub fn renderer(self, renderer: Box<dyn MetricsRenderer + 'static>) -> Self
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