pub struct Environment {
pub ap_tracking: ApChange,
pub ap_tracking_base: Option<StatementIdx>,
pub stack_size: usize,
pub frame_state: FrameState,
pub gas_wallet: GasWallet,
}
Expand description
Part of the program annotations that libfuncs may access as part of their run.
Fields§
§ap_tracking: ApChange
The ap change starting from ap_tracking_base
.
Once it changes to ApChange::Unknown it remains in that state, unless it is reenabled.
ap_tracking_base: Option<StatementIdx>
§stack_size: usize
The size of the continuous known stack.
frame_state: FrameState
§gas_wallet: GasWallet
Implementations§
source§impl Environment
impl Environment
pub fn new(gas_wallet: GasWallet, ap_tracking_base: StatementIdx) -> Self
Trait Implementations§
source§impl Clone for Environment
impl Clone for Environment
source§fn clone(&self) -> Environment
fn clone(&self) -> Environment
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 Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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