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>),
StraySemicolon(Loc),
Using(Box<Using>),
DocComment(DocComment),
}Variants
StructDefinition(Box<StructDefinition>)
EventDefinition(Box<EventDefinition>)
EnumDefinition(Box<EnumDefinition>)
ErrorDefinition(Box<ErrorDefinition>)
VariableDefinition(Box<VariableDefinition>)
FunctionDefinition(Box<FunctionDefinition>)
TypeDefinition(Box<TypeDefinition>)
StraySemicolon(Loc)
Using(Box<Using>)
DocComment(DocComment)
Trait Implementations
sourceimpl Clone for ContractPart
impl Clone for ContractPart
sourcefn clone(&self) -> ContractPart
fn clone(&self) -> ContractPart
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 more
sourceimpl Debug for ContractPart
impl Debug for ContractPart
sourceimpl PartialEq<ContractPart> for ContractPart
impl PartialEq<ContractPart> for ContractPart
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &ContractPart) -> bool
fn ne(&self, other: &ContractPart) -> bool
This method tests for !=.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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