Struct wasm_metadata::ComponentNames
source · pub struct ComponentNames<'a> { /* private fields */ }
Expand description
Helper for rewriting a component’s component-name section with a new component name.
Implementations§
source§impl<'a> ComponentNames<'a>
impl<'a> ComponentNames<'a>
sourcepub fn from_reader(
section: ComponentNameSectionReader<'a>
) -> Result<ComponentNames<'a>>
pub fn from_reader( section: ComponentNameSectionReader<'a> ) -> Result<ComponentNames<'a>>
Read a component-name section from a WebAssembly binary. Records the component name, as well as all other component name fields for later serialization.
sourcepub fn section(&self) -> Result<ComponentNameSection>
pub fn section(&self) -> Result<ComponentNameSection>
Serialize into wasm_encoder::ComponentNameSection
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ComponentNames<'a>
impl<'a> Send for ComponentNames<'a>
impl<'a> Sync for ComponentNames<'a>
impl<'a> Unpin for ComponentNames<'a>
impl<'a> UnwindSafe for ComponentNames<'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