pub struct ComponentNameSection { /* private fields */ }
Expand description

Encoding for the component-name custom section which assigns human-readable names to items within a component.

Implementations

Creates a new blank name custom section.

Appends a component name subsection to this section.

This will indicate that the name of the entire component should be the name specified. Note that this should be encoded first before other subsections.

Appends a decls name subsection to name core functions within the component.

Appends a decls name subsection to name core tables within the component.

Appends a decls name subsection to name core memories within the component.

Appends a decls name subsection to name core globals within the component.

Appends a decls name subsection to name core types within the component.

Appends a decls name subsection to name core modules within the component.

Appends a decls name subsection to name core instances within the component.

Appends a decls name subsection to name component functions within the component.

Appends a decls name subsection to name component values within the component.

Appends a decls name subsection to name component type within the component.

Appends a decls name subsection to name components within the component.

Appends a decls name subsection to name component instances within the component.

Returns whether this section is empty, or nothing has been encoded.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Gets the section identifier for this section.
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Encode the type into the given byte sink.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.