pub enum CodeGenerator {
Legacy,
ViaIr,
}Expand description
Which of solc’s code generators produced a program.
The two keep variables in different places: the legacy generator reserves a stack slot per declaration and frees it at the end of its block, which a debugger can follow without variable information from the compiler; the via-IR pipeline lays the stack out as its optimizer sees fit, and only compiler-emitted locations can describe it.
Variants§
Trait Implementations§
Source§impl Clone for CodeGenerator
impl Clone for CodeGenerator
Source§fn clone(&self) -> CodeGenerator
fn clone(&self) -> CodeGenerator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CodeGenerator
Source§impl Debug for CodeGenerator
impl Debug for CodeGenerator
Source§impl<'de> Deserialize<'de> for CodeGenerator
impl<'de> Deserialize<'de> for CodeGenerator
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CodeGenerator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CodeGenerator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CodeGenerator
Source§impl PartialEq for CodeGenerator
impl PartialEq for CodeGenerator
Source§impl Serialize for CodeGenerator
impl Serialize for CodeGenerator
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CodeGenerator
Auto Trait Implementations§
impl Freeze for CodeGenerator
impl RefUnwindSafe for CodeGenerator
impl Send for CodeGenerator
impl Sync for CodeGenerator
impl Unpin for CodeGenerator
impl UnsafeUnpin for CodeGenerator
impl UnwindSafe for CodeGenerator
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