evaluate_into

Function evaluate_into 

Source
pub fn evaluate_into(graph: &Graph, inputs: &[bool], outputs: &mut [bool])
Expand description

Evaluate a graph into a pre-allocated output buffer.

This is the zero-allocation evaluation path for hot loops.

§Arguments

  • graph - The graph to evaluate
  • inputs - Slice of boolean values indexed by input ID
  • outputs - Pre-allocated output buffer (must have length >= graph.outputs.len())

§Panics

Panics if inputs or outputs are too small.