pub struct ValidatedProgram { /* private fields */ }Expand description
Represents a valid program.
Unlike a general program, we make sure that undefined elements of the stack are never accessed. We also already know the number of input bits required, as well as the number of output bits produced.
By having this information in a struct, we avoid re-validating a program if it’s used multiple times.
Trait Implementations§
Source§impl Clone for ValidatedProgram
impl Clone for ValidatedProgram
Source§fn clone(&self) -> ValidatedProgram
fn clone(&self) -> ValidatedProgram
Returns a copy of the value. Read more
1.0.0 · 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 Freeze for ValidatedProgram
impl RefUnwindSafe for ValidatedProgram
impl Send for ValidatedProgram
impl Sync for ValidatedProgram
impl Unpin for ValidatedProgram
impl UnwindSafe for ValidatedProgram
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