pub struct CustomSection<'wasm> {
pub name: &'wasm str,
pub contents: &'wasm [u8],
}Fields§
§name: &'wasm str§contents: &'wasm [u8]Implementations§
Source§impl<'wasm> CustomSection<'wasm>
impl<'wasm> CustomSection<'wasm>
pub(crate) fn read_and_validate( wasm: &mut WasmReader<'wasm>, header: SectionHeader, ) -> Result<CustomSection<'wasm>, ValidationError>
Trait Implementations§
Source§impl<'wasm> Clone for CustomSection<'wasm>
impl<'wasm> Clone for CustomSection<'wasm>
Source§fn clone(&self) -> CustomSection<'wasm>
fn clone(&self) -> CustomSection<'wasm>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'wasm> Freeze for CustomSection<'wasm>
impl<'wasm> RefUnwindSafe for CustomSection<'wasm>
impl<'wasm> Send for CustomSection<'wasm>
impl<'wasm> Sync for CustomSection<'wasm>
impl<'wasm> Unpin for CustomSection<'wasm>
impl<'wasm> UnwindSafe for CustomSection<'wasm>
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