Struct tasm_lib::ExecutionState
source · pub struct ExecutionState {
pub stack: Vec<BFieldElement>,
pub std_in: Vec<BFieldElement>,
pub secret_in: Vec<BFieldElement>,
pub memory: HashMap<BFieldElement, BFieldElement>,
pub words_allocated: usize,
}
Fields§
§stack: Vec<BFieldElement>
§std_in: Vec<BFieldElement>
§secret_in: Vec<BFieldElement>
§memory: HashMap<BFieldElement, BFieldElement>
§words_allocated: usize
Implementations§
source§impl ExecutionState
impl ExecutionState
pub fn with_stack(stack: Vec<BFieldElement>) -> Self
pub fn with_stack_and_memory( stack: Vec<BFieldElement>, memory: HashMap<BFieldElement, BFieldElement>, words_allocated: usize ) -> Self
Trait Implementations§
source§impl Clone for ExecutionState
impl Clone for ExecutionState
source§fn clone(&self) -> ExecutionState
fn clone(&self) -> ExecutionState
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 RefUnwindSafe for ExecutionState
impl Send for ExecutionState
impl Sync for ExecutionState
impl Unpin for ExecutionState
impl UnwindSafe for ExecutionState
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