Enum sway_core::TypedParseTree
source · [−]pub enum TypedParseTree {
Script {
main_function: TypedFunctionDeclaration,
namespace: NamespaceRef,
declarations: Vec<TypedDeclaration>,
all_nodes: Vec<TypedAstNode>,
},
Predicate {
main_function: TypedFunctionDeclaration,
namespace: NamespaceRef,
declarations: Vec<TypedDeclaration>,
all_nodes: Vec<TypedAstNode>,
},
Contract {
abi_entries: Vec<TypedFunctionDeclaration>,
namespace: NamespaceRef,
declarations: Vec<TypedDeclaration>,
all_nodes: Vec<TypedAstNode>,
},
Library {
namespace: NamespaceRef,
all_nodes: Vec<TypedAstNode>,
},
}Variants
Script
Fields
main_function: TypedFunctionDeclarationnamespace: NamespaceRefdeclarations: Vec<TypedDeclaration>all_nodes: Vec<TypedAstNode>Predicate
Fields
main_function: TypedFunctionDeclarationnamespace: NamespaceRefdeclarations: Vec<TypedDeclaration>all_nodes: Vec<TypedAstNode>Contract
Fields
abi_entries: Vec<TypedFunctionDeclaration>namespace: NamespaceRefdeclarations: Vec<TypedDeclaration>all_nodes: Vec<TypedAstNode>Library
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypedParseTree
impl Send for TypedParseTree
impl Sync for TypedParseTree
impl Unpin for TypedParseTree
impl UnwindSafe for TypedParseTree
Blanket Implementations
Mutably borrows from an owned value. Read more