Expand description
Prepared typed execution over the existing raw interpreter. Executes one construction-validated canonical borrowed frame.
use cel_runtime::{DynSegment, Nil, Leaf, IntoCStackList};
let mut body = DynSegment::new::<()>();
body.just(7i32);
let mut prepared = body.prepare::<Nil, Leaf<i32>>().unwrap();
assert_eq!(prepared.call(&().into_c_stack_list()).unwrap(), 7);Structsยง
- Prepared
RawSegment - Owns the same frozen raw engine as
PreparedSegmentwith runtime-bound witnesses. - Prepared
Segment - Owns a frozen raw body with exact canonical argument/result witnesses.