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>),
}
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>)
Implementations
sourceimpl ContractPart
impl ContractPart
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 moresourceimpl 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
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
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