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<'_>
Available on crate feature component-model
only.
impl ComponentSection for CustomSection<'_>
Available on crate feature
component-model
only.Source§impl<'a> Debug for CustomSection<'a>
impl<'a> Debug for CustomSection<'a>
Source§impl Encode for CustomSection<'_>
impl Encode for CustomSection<'_>
Source§impl<'a> From<CustomSectionReader<'a>> for CustomSection<'a>
Available on crate feature wasmparser
only.
impl<'a> From<CustomSectionReader<'a>> for CustomSection<'a>
Available on crate feature
wasmparser
only.Source§fn from(section: CustomSectionReader<'a>) -> Self
fn from(section: CustomSectionReader<'a>) -> Self
Converts to this type from the input type.
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