pub struct WasmDisassemblyChunkBuilder { /* private fields */ }Expand description
Builder for WasmDisassemblyChunk.
Implementations§
Source§impl WasmDisassemblyChunkBuilder
impl WasmDisassemblyChunkBuilder
Sourcepub fn lines<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn lines<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
The next chunk of disassembled lines.
Sourcepub fn bytecode_offsets<VALUE: Into<Vec<JsUInt>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn bytecode_offsets<VALUE: Into<Vec<JsUInt>>>( &mut self, value: VALUE, ) -> &mut Self
The bytecode offsets describing the start of each line.
Sourcepub fn build(
&self,
) -> Result<WasmDisassemblyChunk, WasmDisassemblyChunkBuilderError>
pub fn build( &self, ) -> Result<WasmDisassemblyChunk, WasmDisassemblyChunkBuilderError>
Trait Implementations§
Source§impl Clone for WasmDisassemblyChunkBuilder
impl Clone for WasmDisassemblyChunkBuilder
Source§fn clone(&self) -> WasmDisassemblyChunkBuilder
fn clone(&self) -> WasmDisassemblyChunkBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WasmDisassemblyChunkBuilder
impl RefUnwindSafe for WasmDisassemblyChunkBuilder
impl Send for WasmDisassemblyChunkBuilder
impl Sync for WasmDisassemblyChunkBuilder
impl Unpin for WasmDisassemblyChunkBuilder
impl UnsafeUnpin for WasmDisassemblyChunkBuilder
impl UnwindSafe for WasmDisassemblyChunkBuilder
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