pub struct Bindgen {
    pub resolve: Resolve,
    pub world: WorldId,
    pub metadata: ModuleMetadata,
}
Expand description

The result of decoding binding information from a WebAssembly binary.

This structure is returned by decode and represents the interface of a WebAssembly binary.

Fields§

§resolve: Resolve

Interface and type information for this binary.

§world: WorldId

The world that was bound.

§metadata: ModuleMetadata

Metadata about this specific module that was bound.

Implementations§

Merges another BindgenMetadata into this one.

This operation is intended to be akin to “merging worlds” when the abstraction level for that is what we’re working at here. For now the merge operation only succeeds if the two metadata descriptions are entirely disjoint.

Note that at this time there’s no support for changing string encodings between metadata.

Trait Implementations§

Returns the “default value” for a type. Read more

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 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.