pub struct DataSegment {
pub init: Vec<u8>,
pub mode: DataMode,
}Fields§
§init: Vec<u8>§mode: DataModeImplementations§
Source§impl DataSegment
impl DataSegment
pub fn decode_and_validate( wasm: &mut WasmDecoder<'_>, imported_global_types: &[GlobalType], c_funcs: &IdxVec<FuncIdx, TypeIdx>, c_mems: &IdxVec<MemIdx, MemType>, ) -> Result<Self, ValidationError>
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 · 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 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