Struct ethers_solc::artifacts::bytecode::CompactDeployedBytecode
source · pub struct CompactDeployedBytecode {
pub bytecode: Option<CompactBytecode>,
pub immutable_references: BTreeMap<String, Vec<Offsets>>,
}Fields§
§bytecode: Option<CompactBytecode>§immutable_references: BTreeMap<String, Vec<Offsets>>Implementations§
source§impl CompactDeployedBytecode
impl CompactDeployedBytecode
sourcepub fn empty() -> Self
pub fn empty() -> Self
Returns a new CompactDeployedBytecode object that contains nothing, as it’s the case for
interfaces and standalone solidity files that don’t contain any contract definitions
sourcepub fn source_map(&self) -> Option<Result<SourceMap, SyntaxError>>
pub fn source_map(&self) -> Option<Result<SourceMap, SyntaxError>>
Returns the parsed source map
See also https://docs.soliditylang.org/en/v0.8.10/internals/source_mappings.html
Trait Implementations§
source§impl Clone for CompactDeployedBytecode
impl Clone for CompactDeployedBytecode
source§fn clone(&self) -> CompactDeployedBytecode
fn clone(&self) -> CompactDeployedBytecode
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 CompactDeployedBytecode
impl Debug for CompactDeployedBytecode
source§impl<'de> Deserialize<'de> for CompactDeployedBytecode
impl<'de> Deserialize<'de> for CompactDeployedBytecode
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 From<CompactDeployedBytecode> for DeployedBytecode
impl From<CompactDeployedBytecode> for DeployedBytecode
source§fn from(bcode: CompactDeployedBytecode) -> DeployedBytecode
fn from(bcode: CompactDeployedBytecode) -> DeployedBytecode
Converts to this type from the input type.
source§impl From<DeployedBytecode> for CompactDeployedBytecode
impl From<DeployedBytecode> for CompactDeployedBytecode
source§fn from(bcode: DeployedBytecode) -> CompactDeployedBytecode
fn from(bcode: DeployedBytecode) -> CompactDeployedBytecode
Converts to this type from the input type.
source§impl PartialEq<CompactDeployedBytecode> for CompactDeployedBytecode
impl PartialEq<CompactDeployedBytecode> for CompactDeployedBytecode
source§fn eq(&self, other: &CompactDeployedBytecode) -> bool
fn eq(&self, other: &CompactDeployedBytecode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.