Struct ethers_solc::artifacts::OptimizerDetails
source · pub struct OptimizerDetails {
pub peephole: Option<bool>,
pub inliner: Option<bool>,
pub jumpdest_remover: Option<bool>,
pub order_literals: Option<bool>,
pub deduplicate: Option<bool>,
pub cse: Option<bool>,
pub constant_optimizer: Option<bool>,
pub yul: Option<bool>,
pub yul_details: Option<YulDetails>,
}
Fields§
§peephole: Option<bool>
The peephole optimizer is always on if no details are given, use details to switch it off.
inliner: Option<bool>
The inliner is always on if no details are given, use details to switch it off.
jumpdest_remover: Option<bool>
The unused jumpdest remover is always on if no details are given, use details to switch it off.
order_literals: Option<bool>
Sometimes re-orders literals in commutative operations.
deduplicate: Option<bool>
Removes duplicate code blocks
cse: Option<bool>
Common subexpression elimination, this is the most complicated step but can also provide the largest gain.
constant_optimizer: Option<bool>
Optimize representation of literal numbers and strings in code.
yul: Option<bool>
The new Yul optimizer. Mostly operates on the code of ABI coder v2 and inline assembly. It is activated together with the global optimizer setting and can be deactivated here. Before Solidity 0.6.0 it had to be activated through this switch.
yul_details: Option<YulDetails>
Tuning options for the Yul optimizer.
Trait Implementations§
source§impl Clone for OptimizerDetails
impl Clone for OptimizerDetails
source§fn clone(&self) -> OptimizerDetails
fn clone(&self) -> OptimizerDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OptimizerDetails
impl Debug for OptimizerDetails
source§impl Default for OptimizerDetails
impl Default for OptimizerDetails
source§fn default() -> OptimizerDetails
fn default() -> OptimizerDetails
source§impl<'de> Deserialize<'de> for OptimizerDetails
impl<'de> Deserialize<'de> for OptimizerDetails
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>,
source§impl PartialEq<OptimizerDetails> for OptimizerDetails
impl PartialEq<OptimizerDetails> for OptimizerDetails
source§fn eq(&self, other: &OptimizerDetails) -> bool
fn eq(&self, other: &OptimizerDetails) -> bool
source§impl Serialize for OptimizerDetails
impl Serialize for OptimizerDetails
impl Eq for OptimizerDetails
impl StructuralEq for OptimizerDetails
impl StructuralPartialEq for OptimizerDetails
Auto Trait Implementations§
impl RefUnwindSafe for OptimizerDetails
impl Send for OptimizerDetails
impl Sync for OptimizerDetails
impl Unpin for OptimizerDetails
impl UnwindSafe for OptimizerDetails
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.