Skip to main content

gen_bridge_function

Function gen_bridge_function 

Source
pub fn gen_bridge_function(
    func: &FunctionDef,
    bridge_param_idx: usize,
    bridge_cfg: &TraitBridgeConfig,
    mapper: &dyn TypeMapper,
    opaque_types: &AHashSet<String>,
    core_import: &str,
) -> String
Expand description

Generate a PHP static method that has one parameter replaced by Option<ext_php_rs::boxed::ZBox<ext_php_rs::types::ZendObject>> (a trait bridge).