pub fn fold_type_ptr<F>(f: &mut F, node: TypePtr) -> TypePtr where
    F: Fold + ?Sized