Enum ethers_solc::artifacts::ast::SourceUnitPart
source · pub enum SourceUnitPart {
PragmaDirective(Box<PragmaDirective>),
ImportDirective(Box<ImportDirective>),
UsingForDirective(Box<UsingForDirective>),
VariableDeclaration(Box<VariableDeclaration>),
EnumDefinition(Box<EnumDefinition>),
ErrorDefinition(Box<ErrorDefinition>),
FunctionDefinition(Box<FunctionDefinition>),
StructDefinition(Box<StructDefinition>),
UserDefinedValueTypeDefinition(Box<UserDefinedValueTypeDefinition>),
ContractDefinition(Box<ContractDefinition>),
}
Variants§
PragmaDirective(Box<PragmaDirective>)
ImportDirective(Box<ImportDirective>)
UsingForDirective(Box<UsingForDirective>)
VariableDeclaration(Box<VariableDeclaration>)
EnumDefinition(Box<EnumDefinition>)
ErrorDefinition(Box<ErrorDefinition>)
FunctionDefinition(Box<FunctionDefinition>)
StructDefinition(Box<StructDefinition>)
UserDefinedValueTypeDefinition(Box<UserDefinedValueTypeDefinition>)
ContractDefinition(Box<ContractDefinition>)
Trait Implementations§
source§impl Clone for SourceUnitPart
impl Clone for SourceUnitPart
source§fn clone(&self) -> SourceUnitPart
fn clone(&self) -> SourceUnitPart
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 Debug for SourceUnitPart
impl Debug for SourceUnitPart
source§impl<'de> Deserialize<'de> for SourceUnitPart
impl<'de> Deserialize<'de> for SourceUnitPart
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SourceUnitPart
impl PartialEq for SourceUnitPart
source§fn eq(&self, other: &SourceUnitPart) -> bool
fn eq(&self, other: &SourceUnitPart) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SourceUnitPart
impl Serialize for SourceUnitPart
impl Eq 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§
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.