Struct wasm_encoder::DataSegment
source · pub struct DataSegment<'a, D> {
pub mode: DataSegmentMode<'a>,
pub data: D,
}
Expand description
A segment in the data section.
Fields§
§mode: DataSegmentMode<'a>
This data segment’s mode.
data: D
This data segment’s data.
Trait Implementations§
source§impl<'a, D: Clone> Clone for DataSegment<'a, D>
impl<'a, D: Clone> Clone for DataSegment<'a, D>
source§fn clone(&self) -> DataSegment<'a, D>
fn clone(&self) -> DataSegment<'a, D>
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 more