pub enum DecodedWasm {
    WitPackage(ResolvePackageId),
    Component(ResolveWorldId),
}
Expand description

Result of the decode function.

Variants§

§

WitPackage(ResolvePackageId)

The input to decode was a binary-encoded WIT package.

The full resolve graph is here plus the identifier of the package that was encoded. Note that other packages may be within the resolve if this package refers to foreign packages.

§

Component(ResolveWorldId)

The input to decode was a component and its interface is specified by the world here.

Implementations§

Returns the Resolve for WIT types contained.

Returns the main package of what was decoded.

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.