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.
source§impl<F> DataSegmentBuilder<F>where
F: Invoke<DataSegment>,
impl<F> DataSegmentBuilder<F>where F: Invoke<DataSegment>,
Trait Implementations§
Auto Trait Implementations§
impl<F> RefUnwindSafe for DataSegmentBuilder<F>where F: RefUnwindSafe,
impl<F> Send for DataSegmentBuilder<F>where F: Send,
impl<F> Sync for DataSegmentBuilder<F>where F: Sync,
impl<F> Unpin for DataSegmentBuilder<F>where F: Unpin,
impl<F> UnwindSafe for DataSegmentBuilder<F>where F: UnwindSafe,
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