From a6c75ae2be2ed66e6b98a0f78a3254f976b75b93 Mon Sep 17 00:00:00 2001 From: crStiv Date: Tue, 17 Dec 2024 21:03:54 +0100 Subject: [PATCH] Update unconstrained.rs --- .../recursion/core/src/runtime/unconstrained.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/crates/recursion/core/src/runtime/unconstrained.rs b/crates/recursion/core/src/runtime/unconstrained.rs index 808e38405..e38f85de3 100644 --- a/crates/recursion/core/src/runtime/unconstrained.rs +++ b/crates/recursion/core/src/runtime/unconstrained.rs @@ -1,5 +1,18 @@ +use super::io::StdinBuffer; + +pub struct UnconstrainedBlock { + pub stdin_buffer: StdinBuffer, + // other fields, if any... +} + impl UnconstrainedBlock { - // Adding a new method to write to the front of the queue + pub fn new() -> Self { + Self { + stdin_buffer: StdinBuffer::new(), + // initialization of other fields... + } + } + pub fn write_front(&mut self, data: Vec) { self.stdin_buffer.write_front(data); }