pub struct Interpreter;Implementations§
Source§impl Interpreter
impl Interpreter
pub fn new() -> Self
Sourcepub fn execute<I, O, D, S, T, ST, SYM, VS, VT>(
&self,
tree: &OpTree<I, O, Context<D, S, T, ST, SYM, VS, VT>, Contextoid<D, S, T, ST, SYM, VS, VT>>,
initial_state: CausalSystemState<I, O, Context<D, S, T, ST, SYM, VS, VT>>,
) -> AuditableGraphGenerator<CausalSystemState<I, O, Context<D, S, T, ST, SYM, VS, VT>>>
pub fn execute<I, O, D, S, T, ST, SYM, VS, VT>( &self, tree: &OpTree<I, O, Context<D, S, T, ST, SYM, VS, VT>, Contextoid<D, S, T, ST, SYM, VS, VT>>, initial_state: CausalSystemState<I, O, Context<D, S, T, ST, SYM, VS, VT>>, ) -> AuditableGraphGenerator<CausalSystemState<I, O, Context<D, S, T, ST, SYM, VS, VT>>>
Executes an operation tree, producing an auditable result.
This is the main entry point for executing operations. It initializes
the effect system and delegates to walk for recursive execution.
§Arguments
tree: The operation tree to executeinitial_state: The starting state of the causal system
§Returns
An AuditableGraphGenerator containing:
- The final state (or
Noneif an error occurred) - Any error that prevented execution
- Complete audit log of all operations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interpreter
impl RefUnwindSafe for Interpreter
impl Send for Interpreter
impl Sync for Interpreter
impl Unpin for Interpreter
impl UnwindSafe for Interpreter
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