Skip to main content

gen_bridge_plugin_impl

Function gen_bridge_plugin_impl 

Source
pub fn gen_bridge_plugin_impl(
    spec: &TraitBridgeSpec<'_>,
    generator: &dyn TraitBridgeGenerator,
) -> Option<String>
Expand description

Generate impl SuperTrait for Wrapper when the bridge config specifies a super-trait.

Forwards name(), version(), initialize(), and shutdown() to the foreign object, using cached_name for name().

The super-trait path is derived from the config’s super_trait field. If it contains ::, it’s used as-is; otherwise it’s qualified as {core_import}::{super_trait}.