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
impl 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<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
impl Eq for CodeGenerator
Source§impl PartialEq for CodeGenerator
impl PartialEq for CodeGenerator
Source§impl Serialize for CodeGenerator
impl Serialize for CodeGenerator
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