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
sourceimpl Clone for OptimizerDetails
impl Clone for OptimizerDetails
sourcefn clone(&self) -> OptimizerDetails
fn clone(&self) -> OptimizerDetails
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for OptimizerDetails
impl Debug for OptimizerDetails
sourceimpl Default for OptimizerDetails
impl Default for OptimizerDetails
sourcefn default() -> OptimizerDetails
fn default() -> OptimizerDetails
sourceimpl<'de> Deserialize<'de> for OptimizerDetails
impl<'de> Deserialize<'de> for OptimizerDetails
sourcefn 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>,
sourceimpl PartialEq<OptimizerDetails> for OptimizerDetails
impl PartialEq<OptimizerDetails> for OptimizerDetails
sourcefn eq(&self, other: &OptimizerDetails) -> bool
fn eq(&self, other: &OptimizerDetails) -> bool
sourceimpl 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
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
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.