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