pub struct ModuleNames<'a> { /* private fields */ }
Expand description
Helper for rewriting a module’s name section with a new module name.
Implementations§
Source§impl<'a> ModuleNames<'a>
impl<'a> ModuleNames<'a>
Sourcepub fn from_bytes(bytes: &'a [u8], offset: usize) -> Result<ModuleNames<'a>>
pub fn from_bytes(bytes: &'a [u8], offset: usize) -> Result<ModuleNames<'a>>
Read a name section from a WebAssembly binary. Records the module name, and all other contents of name section, for later serialization.
Sourcepub fn raw_custom_section(&self) -> Result<Vec<u8>>
pub fn raw_custom_section(&self) -> Result<Vec<u8>>
Serialize into the raw bytes of a wasm custom section.
Auto Trait Implementations§
impl<'a> Freeze for ModuleNames<'a>
impl<'a> RefUnwindSafe for ModuleNames<'a>
impl<'a> Send for ModuleNames<'a>
impl<'a> Sync for ModuleNames<'a>
impl<'a> Unpin for ModuleNames<'a>
impl<'a> UnwindSafe for ModuleNames<'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