Enum solang_parser::pt::SourceUnitPart[][src]

pub enum SourceUnitPart {
    ContractDefinition(Box<ContractDefinition>),
    PragmaDirective(Vec<DocComment>, IdentifierStringLiteral),
    ImportDirective(Vec<DocComment>, Import),
    EnumDefinition(Box<EnumDefinition>),
    StructDefinition(Box<StructDefinition>),
    EventDefinition(Box<EventDefinition>),
    FunctionDefinition(Box<FunctionDefinition>),
    VariableDefinition(Box<VariableDefinition>),
    StraySemicolon(Loc),
}

Variants

ContractDefinition(Box<ContractDefinition>)

Tuple Fields

PragmaDirective(Vec<DocComment>, IdentifierStringLiteral)

Tuple Fields

ImportDirective(Vec<DocComment>, Import)

Tuple Fields

1: Import

EnumDefinition(Box<EnumDefinition>)

Tuple Fields

StructDefinition(Box<StructDefinition>)

Tuple Fields

EventDefinition(Box<EventDefinition>)

Tuple Fields

FunctionDefinition(Box<FunctionDefinition>)

Tuple Fields

VariableDefinition(Box<VariableDefinition>)

Tuple Fields

StraySemicolon(Loc)

Tuple Fields

0: Loc

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.