MCPcopy Index your code
hub / github.com/ciphermodelabs/ciphercore / preprocess

Method preprocess

ciphercore-base/src/evaluators.rs:14–22  ·  view source on GitHub ↗
(&mut self, context: Context)

Source from the content-addressed store, hash-verified

12
13pub trait Evaluator {
14 fn preprocess(&mut self, context: Context) -> Result<()> {
15 context.check_finalized()?;
16 for graph in context.get_graphs() {
17 for node in graph.get_nodes() {
18 node.get_type()?;
19 }
20 }
21 Ok(())
22 }
23
24 fn evaluate_node(&mut self, node: Node, dependencies_values: Vec<Value>) -> Result<Value>;
25

Callers 5

get_evaluator_resultFunction · 0.80
optimize_contextFunction · 0.80
stress_testFunction · 0.80
optimize_contextFunction · 0.80

Implementers 1

simple_evaluator.rsciphercore-base/src/evaluators/simple_

Calls 4

check_finalizedMethod · 0.45
get_graphsMethod · 0.45
get_nodesMethod · 0.45
get_typeMethod · 0.45

Tested by

no test coverage detected