pub enum ContractBodyElement {
Constructor(ConstructorDefinition),
Function(FunctionDefinition),
Modifier(ModifierDefinition),
StateVariable(StateVariableDeclaration),
Event(EventDefinition),
Error(ErrorDefinition),
Struct(StructDefinition),
Enum(EnumDefinition),
Using(UsingDirective),
}
Variants§
Constructor(ConstructorDefinition)
Function(FunctionDefinition)
Modifier(ModifierDefinition)
StateVariable(StateVariableDeclaration)
Event(EventDefinition)
Error(ErrorDefinition)
Struct(StructDefinition)
Enum(EnumDefinition)
Using(UsingDirective)
Trait Implementations§
Source§impl Clone for ContractBodyElement
impl Clone for ContractBodyElement
Source§fn clone(&self) -> ContractBodyElement
fn clone(&self) -> ContractBodyElement
Returns a duplicate 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 Debug for ContractBodyElement
impl Debug for ContractBodyElement
Source§impl PartialEq for ContractBodyElement
impl PartialEq for ContractBodyElement
impl StructuralPartialEq for ContractBodyElement
Auto Trait Implementations§
impl Freeze for ContractBodyElement
impl RefUnwindSafe for ContractBodyElement
impl Send for ContractBodyElement
impl Sync for ContractBodyElement
impl Unpin for ContractBodyElement
impl UnwindSafe for ContractBodyElement
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