Skip to main content

gen_bridge_trait_impl

Function gen_bridge_trait_impl 

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

Generate impl Trait for Wrapper dispatching each method through the generator.

Every method on the trait (including those with has_default_impl) gets a generated body that forwards to the foreign object.