Skip to content

Add CFRetained::into_super or similar #854

Description

@madsmtm

It would be nice to have a way to "upcast" things like CFMutableDictionary to CFDictionary, without having to go do (&dict).into() (which requires an extra retain/release).

Motivating use-case: things like IOServiceMatching returns a mutable dict which is consumed as an immutable dict by things like IOServiceGetMatchingService, see #744.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frameworkAffects the framework crates and the translator for themenhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions