Enum solang_parser::pt::SourceUnitPart
source · [−]pub enum SourceUnitPart {
ContractDefinition(Box<ContractDefinition>),
PragmaDirective(Loc, Identifier, StringLiteral),
ImportDirective(Import),
EnumDefinition(Box<EnumDefinition>),
StructDefinition(Box<StructDefinition>),
EventDefinition(Box<EventDefinition>),
ErrorDefinition(Box<ErrorDefinition>),
FunctionDefinition(Box<FunctionDefinition>),
VariableDefinition(Box<VariableDefinition>),
TypeDefinition(Box<TypeDefinition>),
Using(Box<Using>),
StraySemicolon(Loc),
}
Variants
ContractDefinition(Box<ContractDefinition>)
PragmaDirective(Loc, Identifier, StringLiteral)
ImportDirective(Import)
EnumDefinition(Box<EnumDefinition>)
StructDefinition(Box<StructDefinition>)
EventDefinition(Box<EventDefinition>)
ErrorDefinition(Box<ErrorDefinition>)
FunctionDefinition(Box<FunctionDefinition>)
VariableDefinition(Box<VariableDefinition>)
TypeDefinition(Box<TypeDefinition>)
Using(Box<Using>)
StraySemicolon(Loc)
Implementations
sourceimpl SourceUnitPart
impl SourceUnitPart
Trait Implementations
sourceimpl Clone for SourceUnitPart
impl Clone for SourceUnitPart
sourcefn clone(&self) -> SourceUnitPart
fn clone(&self) -> SourceUnitPart
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SourceUnitPart
impl Debug for SourceUnitPart
sourceimpl PartialEq<SourceUnitPart> for SourceUnitPart
impl PartialEq<SourceUnitPart> for SourceUnitPart
sourcefn eq(&self, other: &SourceUnitPart) -> bool
fn eq(&self, other: &SourceUnitPart) -> bool
impl Eq for SourceUnitPart
impl StructuralEq for SourceUnitPart
impl StructuralPartialEq for SourceUnitPart
Auto Trait Implementations
impl RefUnwindSafe for SourceUnitPart
impl Send for SourceUnitPart
impl Sync for SourceUnitPart
impl Unpin for SourceUnitPart
impl UnwindSafe for SourceUnitPart
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more