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 moreAuto Trait Implementations§
impl<'a, D> Freeze for DataSegment<'a, D>where
D: Freeze,
impl<'a, D> RefUnwindSafe for DataSegment<'a, D>where
D: RefUnwindSafe,
impl<'a, D> Send for DataSegment<'a, D>where
D: Send,
impl<'a, D> Sync for DataSegment<'a, D>where
D: Sync,
impl<'a, D> Unpin for DataSegment<'a, D>where
D: Unpin,
impl<'a, D> UnwindSafe for DataSegment<'a, D>where
D: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)