Skip to main content

to_required_spec

Function to_required_spec 

Source
pub fn to_required_spec(p: RequiredPlugin) -> RequiredSpec
Expand description

Convert a host-side RequiredPlugin into the loader’s mirror.

The one match the mirroring costs. Worth it: without it, the WIT-facing type and the loader’s would be the same type, and a loader refactor could reshape a published plugin API.