Struct wasm_metadata::ModuleNames
source · 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_reader(section: NameSectionReader<'a>) -> Result<ModuleNames<'a>>
pub fn from_reader(section: NameSectionReader<'a>) -> 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 section(&self) -> Result<NameSection>
pub fn section(&self) -> Result<NameSection>
Serialize into wasm_encoder::NameSection
.
Auto Trait Implementations§
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