Skip to main content

gen_impl_block_with_renames

Function gen_impl_block_with_renames 

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

Like gen_impl_block but with field renames for keyword escaping in the constructor.