pub struct Compiler { /* private fields */ }Expand description
Zink Compiler
Implementations§
source§impl Compiler
impl Compiler
sourcepub fn constructor(self, constructor: bool) -> Self
pub fn constructor(self, constructor: bool) -> Self
If embed constructor in bytecode.
sourcepub fn dispatcher(self, dispatcher: bool) -> Self
pub fn dispatcher(self, dispatcher: bool) -> Self
If embed dispatcher in bytecode.
sourcepub fn compile(&mut self, wasm: &[u8]) -> Result<Buffer>
pub fn compile(&mut self, wasm: &[u8]) -> Result<Buffer>
Compile wasm module to evm bytecode.
Returns runtime bytecode.
sourcepub fn compile_dispatcher(&mut self, parser: &mut Parser<'_>) -> Result<()>
pub fn compile_dispatcher(&mut self, parser: &mut Parser<'_>) -> Result<()>
Compile EVM dispatcher.
Drain selectors anyway, if dispatcher is enabled, compile dispatcher.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Compiler
impl Send for Compiler
impl Sync for Compiler
impl Unpin for Compiler
impl UnwindSafe for Compiler
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