pub struct DataSegment {
pub kind: DataSegmentKind,
pub data: Vec<u8>,
}
Expand description
Data Segment in a wasm module.
Fields§
§kind: DataSegmentKind
The kind of data segment.
data: Vec<u8>
The data of the data segment.
Implementations§
Source§impl DataSegment
impl DataSegment
pub fn from_wasmparser(data: Data<'_>) -> Result<DataSegment, Error>
Trait Implementations§
Source§impl Clone for DataSegment
impl Clone for DataSegment
Source§fn clone(&self) -> DataSegment
fn clone(&self) -> DataSegment
Returns a copy 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