MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / InlineState

Interface InlineState

ciphercore-base/src/inline/inline_common.rs:10–15  ·  view source on GitHub ↗

This trait is needed only for calling back to the inlining processor from the individual inliners, and mocking it out in the tests/

Source from the content-addressed store, hash-verified

8// This trait is needed only for calling back to the inlining processor from the
9// individual inliners, and mocking it out in the tests/
10pub(super) trait InlineState {
11 fn assign_input_nodes(&mut self, graph: Graph, nodes: Vec<Node>) -> Result<()>;
12 fn unassign_nodes(&mut self, graph: Graph) -> Result<()>;
13 fn recursively_inline_graph(&mut self, graph: Graph) -> Result<Node>;
14 fn output_graph(&self) -> Graph;
15}
16
17#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
18pub enum DepthOptimizationLevel {

Callers

nothing calls this directly

Implementers 2

inline_ops.rsciphercore-base/src/inline/inline_ops.
inline_test_utils.rsciphercore-base/src/inline/inline_test

Calls

no outgoing calls

Tested by

no test coverage detected