Enum sway_core::parse_tree::declaration::Declaration
source · [−]pub enum Declaration {
VariableDeclaration(VariableDeclaration),
FunctionDeclaration(FunctionDeclaration),
TraitDeclaration(TraitDeclaration),
StructDeclaration(StructDeclaration),
EnumDeclaration(EnumDeclaration),
Reassignment(Reassignment),
ImplTrait(ImplTrait),
ImplSelf(ImplSelf),
AbiDeclaration(AbiDeclaration),
ConstantDeclaration(ConstantDeclaration),
StorageDeclaration(StorageDeclaration),
}
Variants
VariableDeclaration(VariableDeclaration)
FunctionDeclaration(FunctionDeclaration)
TraitDeclaration(TraitDeclaration)
StructDeclaration(StructDeclaration)
EnumDeclaration(EnumDeclaration)
Reassignment(Reassignment)
ImplTrait(ImplTrait)
ImplSelf(ImplSelf)
AbiDeclaration(AbiDeclaration)
ConstantDeclaration(ConstantDeclaration)
StorageDeclaration(StorageDeclaration)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnwindSafe for Declaration
Blanket Implementations
Mutably borrows from an owned value. Read more