Struct sway_core::parse_tree::declaration::StorageDeclaration [−][src]
pub struct StorageDeclaration<'sc> {
pub fields: Vec<StorageField<'sc>>,
pub span: Span<'sc>,
}
Expand description
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.
Fields
fields: Vec<StorageField<'sc>>
span: Span<'sc>
Trait Implementations
Auto Trait Implementations
impl<'sc> RefUnwindSafe for StorageDeclaration<'sc>
impl<'sc> Send for StorageDeclaration<'sc>
impl<'sc> Sync for StorageDeclaration<'sc>
impl<'sc> Unpin for StorageDeclaration<'sc>
impl<'sc> UnwindSafe for StorageDeclaration<'sc>
Blanket Implementations
Mutably borrows from an owned value. Read more