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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for OptimizerDetails
impl Debug for OptimizerDetails
sourceimpl Default for OptimizerDetails
impl Default for OptimizerDetails
sourcefn default() -> OptimizerDetails
fn default() -> OptimizerDetails
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<OptimizerDetails> for OptimizerDetails
impl PartialEq<OptimizerDetails> for OptimizerDetails
sourcefn eq(&self, other: &OptimizerDetails) -> bool
fn eq(&self, other: &OptimizerDetails) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &OptimizerDetails) -> bool
fn ne(&self, other: &OptimizerDetails) -> bool
This method tests for !=.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more