pub enum StorageLocation {
Formal(Symbol),
GlobalResource {
type_: QualifiedStructIdent,
type_actuals: Vec<Type>,
address: Box<StorageLocation>,
},
AccessPath {
base: Box<StorageLocation>,
fields_and_indices: Vec<FieldOrIndex>,
},
Address(AccountAddress),
Ret(u8),
}
Expand description
A location that can store a value
Variants§
Formal(Symbol)
A formal of the current procedure
GlobalResource
A resource of type type_
stored in global storage at address
AccessPath
An access path rooted at base
with nonempty offsets in fields_or_indices
Address(AccountAddress)
Account address constant
Ret(u8)
The ith return value of the current procedure
Trait Implementations§
source§impl Clone for StorageLocation
impl Clone for StorageLocation
source§fn clone(&self) -> StorageLocation
fn clone(&self) -> StorageLocation
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 moresource§impl Debug for StorageLocation
impl Debug for StorageLocation
source§impl PartialEq<StorageLocation> for StorageLocation
impl PartialEq<StorageLocation> for StorageLocation
source§fn eq(&self, other: &StorageLocation) -> bool
fn eq(&self, other: &StorageLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.