Struct bytecode_interpreter::concrete::value::EvalState
source · pub struct EvalState { /* private fields */ }
Implementations§
source§impl EvalState
impl EvalState
sourcepub fn save_memory(
&mut self,
label: MemoryLabel,
partial_inst: PartialStructInstantiation,
global_state: &GlobalState
)
pub fn save_memory( &mut self, label: MemoryLabel, partial_inst: PartialStructInstantiation, global_state: &GlobalState )
Collect resources of the (partial) instantiation type from the global state and save them under the given memory label
sourcepub fn load_memory(
&self,
label: &MemoryLabel,
inst: &StructInstantiation,
addr: &AccountAddress
) -> Option<BaseValue>
pub fn load_memory( &self, label: &MemoryLabel, inst: &StructInstantiation, addr: &AccountAddress ) -> Option<BaseValue>
Load a resource with given instantiation type from the specified address, saved by the given memory label.
sourcepub fn register_memory(&self, label: &MemoryLabel, global_state: &mut GlobalState)
pub fn register_memory(&self, label: &MemoryLabel, global_state: &mut GlobalState)
Populate a global state with the resources saved by the given memmory label
sourcepub fn all_addresses(&self) -> BTreeSet<AccountAddress>
pub fn all_addresses(&self) -> BTreeSet<AccountAddress>
Return all addresses in the state
sourcepub fn all_resources_by_inst(&self, inst: &StructInstantiation) -> Vec<BaseValue> ⓘ
pub fn all_resources_by_inst(&self, inst: &StructInstantiation) -> Vec<BaseValue> ⓘ
Return all resources with instantiation matching
sourcepub fn all_resources_by_ident(&self, ident: &StructIdent) -> Vec<BaseValue> ⓘ
pub fn all_resources_by_ident(&self, ident: &StructIdent) -> Vec<BaseValue> ⓘ
Return all resources with identity matching
Trait Implementations§
source§impl PartialEq<EvalState> for EvalState
impl PartialEq<EvalState> for EvalState
impl Eq for EvalState
impl StructuralEq for EvalState
impl StructuralPartialEq for EvalState
Auto Trait Implementations§
impl RefUnwindSafe for EvalState
impl Send for EvalState
impl Sync for EvalState
impl Unpin for EvalState
impl UnwindSafe for EvalState
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.