-
-
Notifications
You must be signed in to change notification settings - Fork 77
Add CFRetained::into_super or similar #854
Copy link
Copy link
Open
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themenhancementNew feature or requestNew feature or request
Description
Activity
Metadata
Metadata
Assignees
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for themenhancementNew feature or requestNew feature or request
It would be nice to have a way to "upcast" things like
CFMutableDictionarytoCFDictionary, without having to go do(&dict).into()(which requires an extra retain/release).Motivating use-case: things like
IOServiceMatchingreturns a mutable dict which is consumed as an immutable dict by things likeIOServiceGetMatchingService, see #744.