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: DThis 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
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more