pub struct ReferenceExecutor { /* private fields */ }Expand description
Executor that runs program on a CPU-side reference interpreter.
vyre-reference::reference_eval is the canonical implementation. A host
wires an adapter into this wrapper so the conformance path stays
substrate-neutral (no vyre-driver → vyre-reference dep cycle).
Implementations§
Source§impl ReferenceExecutor
impl ReferenceExecutor
Sourcepub fn run(
&self,
program: &Program,
inputs: &[Vec<u8>],
) -> Result<Vec<Vec<u8>>, BackendError>
pub fn run( &self, program: &Program, inputs: &[Vec<u8>], ) -> Result<Vec<Vec<u8>>, BackendError>
Execute program against inputs, returning the byte-level
output buffers in the same order the backend would emit.
§Errors
Returns a BackendError when the reference rejects the
program or any witness tuple.
Trait Implementations§
Source§impl Clone for ReferenceExecutor
impl Clone for ReferenceExecutor
Source§fn clone(&self) -> ReferenceExecutor
fn clone(&self) -> ReferenceExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ReferenceExecutor
impl !UnwindSafe for ReferenceExecutor
impl Freeze for ReferenceExecutor
impl Send for ReferenceExecutor
impl Sync for ReferenceExecutor
impl Unpin for ReferenceExecutor
impl UnsafeUnpin for ReferenceExecutor
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