Enum solang_parser::pt::ContractPart
source · pub enum ContractPart {
StructDefinition(Box<StructDefinition>),
EventDefinition(Box<EventDefinition>),
EnumDefinition(Box<EnumDefinition>),
ErrorDefinition(Box<ErrorDefinition>),
VariableDefinition(Box<VariableDefinition>),
FunctionDefinition(Box<FunctionDefinition>),
TypeDefinition(Box<TypeDefinition>),
Annotation(Box<Annotation>),
Using(Box<Using>),
StraySemicolon(Loc),
}
Expand description
A contract part.
Variants§
StructDefinition(Box<StructDefinition>)
A struct definition.
EventDefinition(Box<EventDefinition>)
An event definition.
EnumDefinition(Box<EnumDefinition>)
An enum definition.
ErrorDefinition(Box<ErrorDefinition>)
An error definition.
VariableDefinition(Box<VariableDefinition>)
A variable definition.
FunctionDefinition(Box<FunctionDefinition>)
A function definition.
TypeDefinition(Box<TypeDefinition>)
A type definition.
Annotation(Box<Annotation>)
A definition.
Using(Box<Using>)
A using
directive.
StraySemicolon(Loc)
A stray semicolon.
Trait Implementations§
source§impl Clone for ContractPart
impl Clone for ContractPart
source§fn clone(&self) -> ContractPart
fn clone(&self) -> ContractPart
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CodeLocation for ContractPart
impl CodeLocation for ContractPart
source§impl Debug for ContractPart
impl Debug for ContractPart
source§impl Display for ContractPart
impl Display for ContractPart
source§impl OptionalCodeLocation for ContractPart
impl OptionalCodeLocation for ContractPart
source§impl PartialEq for ContractPart
impl PartialEq for ContractPart
source§fn eq(&self, other: &ContractPart) -> bool
fn eq(&self, other: &ContractPart) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ContractPart
impl StructuralEq for ContractPart
impl StructuralPartialEq for ContractPart
Auto Trait Implementations§
impl RefUnwindSafe for ContractPart
impl Send for ContractPart
impl Sync for ContractPart
impl Unpin for ContractPart
impl UnwindSafe for ContractPart
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more