Struct parity_wasm::builder::DataSegmentBuilder
source · pub struct DataSegmentBuilder<F = Identity> { /* private fields */ }
Expand description
Data segment builder
Implementations§
source§impl<F> DataSegmentBuilder<F>
impl<F> DataSegmentBuilder<F>
sourcepub fn with_callback(callback: F) -> Self
pub fn with_callback(callback: F) -> Self
New data segment builder inside the chain context
sourcepub fn offset(self, instruction: Instruction) -> Self
pub fn offset(self, instruction: Instruction) -> Self
Set offset initialization instruction. End
instruction will be added automatically.