Skip to main content

gen_method

Function gen_method 

Source
pub fn gen_method(
    method: &MethodDef,
    mapper: &dyn TypeMapper,
    cfg: &RustBindingConfig<'_>,
    typ: &TypeDef,
    is_opaque: bool,
    opaque_types: &AHashSet<String>,
    adapter_bodies: &AdapterBodies,
) -> String
Expand description

Generate an instance method.

When is_opaque is true, generates delegation to self.inner via Arc clone instead of converting self to core type.

opaque_types is the set of opaque type names, used for correct return wrapping.