zerofrom_derive

Function replace_lifetime_and_type

source
pub(crate) fn replace_lifetime_and_type(
    x: &Type,
    lt: Lifetime,
    generics_env: &HashMap<Ident, Option<Ident>>,
) -> Type
Expand description

Replace all lifetimes in a type with a specified one, AND replace all types that have a corresponding C type with the C type