pub struct Evaluator { /* private fields */ }Expand description
Main evaluator that coordinates all evaluation modules.
Implementations§
Source§impl Evaluator
impl Evaluator
Sourcepub fn new(config: EvaluationConfig) -> Self
pub fn new(config: EvaluationConfig) -> Self
Create a new evaluator with the given configuration.
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create an evaluator with default configuration.
Sourcepub fn config(&self) -> &EvaluationConfig
pub fn config(&self) -> &EvaluationConfig
Get the configuration.
Sourcepub fn run_evaluation(&self) -> ComprehensiveEvaluation
pub fn run_evaluation(&self) -> ComprehensiveEvaluation
Run a comprehensive evaluation and return results.
§Architectural note
This zero-argument variant returns a default (passing) evaluation because the
Evaluator struct holds only configuration — it has no access to the generated
journal entry or balance data that the sub-module evaluators require.
To evaluate actual generation output, use [run_evaluation_with_amounts] which
accepts raw JE amounts and runs the Benford analysis. Full wiring of all
sub-modules (BalanceSheetEvaluator, DocumentChainEvaluator, etc.) requires
passing the complete EnhancedGenerationResult from the runtime crate, which
would create a circular dependency. The recommended integration point is the
orchestrator layer (datasynth-runtime) which already calls the gate engine with
a populated ComprehensiveEvaluation.
Sourcepub fn run_evaluation_with_amounts(
&self,
je_amounts: &[Decimal],
) -> ComprehensiveEvaluation
pub fn run_evaluation_with_amounts( &self, je_amounts: &[Decimal], ) -> ComprehensiveEvaluation
Run a Benford-augmented evaluation given raw JE amounts.
This method calls the BenfordAnalyzer sub-module and populates the
statistical.benford field of the returned ComprehensiveEvaluation.
All other sub-module fields remain at their default (passing) values.
Auto Trait Implementations§
impl Freeze for Evaluator
impl RefUnwindSafe for Evaluator
impl Send for Evaluator
impl Sync for Evaluator
impl Unpin for Evaluator
impl UnsafeUnpin for Evaluator
impl UnwindSafe for Evaluator
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.