pub struct DataSegment {
pub linmem_off: u32,
pub bytes: Vec<u8>,
}Expand description
One active WASM data segment: its linear-memory offset and its bytes, in
declaration order. The packed .data blob stores these bytes verbatim
(4-aligned per segment) under __synth_wasm_seg_K; index K in the segment
list is the K in the symbol name.
Fields§
§linmem_off: u32Linear-memory offset the active segment is applied at (WASM i32.const).
bytes: Vec<u8>The segment’s initializer bytes.
Trait Implementations§
Source§impl Clone for DataSegment
impl Clone for DataSegment
Source§fn clone(&self) -> DataSegment
fn clone(&self) -> DataSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DataSegment
impl RefUnwindSafe for DataSegment
impl Send for DataSegment
impl Sync for DataSegment
impl Unpin for DataSegment
impl UnsafeUnpin for DataSegment
impl UnwindSafe for DataSegment
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