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
sourceimpl<'a, D: Clone> Clone for DataSegment<'a, D>
impl<'a, D: Clone> Clone for DataSegment<'a, D>
sourcefn clone(&self) -> DataSegment<'a, D>
fn clone(&self) -> DataSegment<'a, D>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more