sway_core::language::parsed

Module declaration

Source

Re-exports§

pub use function::*;

Modules§

function

Structs§

AbiDeclaration
An abi declaration, which declares an interface for a contract to implement or for a caller to use to call a contract.
ConfigurableDeclaration
ConstantDeclaration
EnumDeclaration
EnumVariant
EnumVariantDeclaration
ImplSelfOrTrait
An impl trait, or impl self of methods without a trait. like impl MyType { fn foo { .. } }
StorageDeclaration
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.
StorageField
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.
StorageNamespace
StructDeclaration
StructField
Supertrait
TraitDeclaration
TraitFn
TraitTypeDeclaration
TypeAliasDeclaration
VariableDeclaration

Enums§

Declaration
ImplItem
StorageEntry
TraitItem