Closed tmandry closed 2 months ago
This is needed to create a type-safe generic abstraction over AXValue
; see value.rs in https://github.com/eiz/accessibility/pull/5.
Friendly ping @jdm, would you or another maintainer be willing to take a look at this?
@tmandry I'd like to get this unblocked for you. Could you rebase to current main
?
Thanks for taking a look @waywardmonkeys. Should be ready now.
impl_TCFType!
accepts generic types but some of its impls are missing the generics. They work on types with defaulted generics, but only in the default case. This PR fixes that.It also updates
declare_TCFType!
to accept generics as a convenience. We use one PhantomData per parameter, as is already done inimpl_TCFType!
.In addition, some warnings are silenced, and the macros no longer depend on any traits being in scope in the caller.