Struct wasm_encoder::RawSection
source · pub struct RawSection<'a> {
pub id: u8,
pub data: &'a [u8],
}
Expand description
A section made up of uninterpreted, raw bytes.
Allows you to splat any data into a module or component.
Fields§
§id: u8
The id for this section.
data: &'a [u8]
The raw data for this section.
Trait Implementations§
source§impl<'a> Clone for RawSection<'a>
impl<'a> Clone for RawSection<'a>
source§fn clone(&self) -> RawSection<'a>
fn clone(&self) -> RawSection<'a>
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