Module sway_core::parse_tree::declaration
source · [−]Re-exports
pub use function::*;
Modules
Structs
A declaration of contract storage. Only valid within contract contexts. All values in this struct are mutable and persistent among executions of the same contract deployment.
An individual field in a storage declaration. A type annotation and initializer value must be provided. The initializer value must be a constant expression. For now, that basically means just a literal, but as constant folding improves, we can update that.
Enums
Represents the left hand side of a reassignment, which could either be a regular variable expression, denoted by ReassignmentTarget::VariableExpression, or, a storage field, denoted by ReassignmentTarget::StorageField.