pub fn gen_method(
method: &MethodDef,
mapper: &dyn TypeMapper,
cfg: &RustBindingConfig<'_>,
typ: &TypeDef,
is_opaque: bool,
opaque_types: &AHashSet<String>,
mutex_types: &AHashSet<String>,
adapter_bodies: &AdapterBodies,
) -> StringExpand 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.
mutex_types is the subset of opaque types whose inner field is Arc<Mutex<T>>;
method dispatch uses .lock().unwrap() for these types.