Struct wasm_encoder::CustomSection
source · pub struct CustomSection<'a> {
pub name: Cow<'a, str>,
pub data: Cow<'a, [u8]>,
}
Expand description
A custom section holding arbitrary data.
Fields§
§name: Cow<'a, str>
The name of this custom section.
data: Cow<'a, [u8]>
This custom section’s data.
Trait Implementations§
source§impl<'a> Clone for CustomSection<'a>
impl<'a> Clone for CustomSection<'a>
source§fn clone(&self) -> CustomSection<'a>
fn clone(&self) -> CustomSection<'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 moresource§impl ComponentSection for CustomSection<'_>
impl ComponentSection for CustomSection<'_>
source§impl<'a> Debug for CustomSection<'a>
impl<'a> Debug for CustomSection<'a>
source§impl Encode for CustomSection<'_>
impl Encode for CustomSection<'_>
Auto Trait Implementations§
impl<'a> Freeze for CustomSection<'a>
impl<'a> RefUnwindSafe for CustomSection<'a>
impl<'a> Send for CustomSection<'a>
impl<'a> Sync for CustomSection<'a>
impl<'a> Unpin for CustomSection<'a>
impl<'a> UnwindSafe for CustomSection<'a>
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