Skip to main content

gen_constructor_with_renames

Function gen_constructor_with_renames 

Source
pub fn gen_constructor_with_renames(
    typ: &TypeDef,
    mapper: &dyn TypeMapper,
    cfg: &RustBindingConfig<'_>,
    field_renames: Option<&HashMap<String, String>>,
) -> String
Expand description

Like gen_constructor but with field renames for keyword escaping.