1 2 3 4 5 6 7 8 9 10
use super::*; /// A trait for retrieving the implementation behind a COM or WinRT interface. /// /// This trait is automatically implemented when using the [`implement`] macro but /// is considered unsafe since different implemenetations of the `from` interface // may exist. pub trait ToImpl<T: Interface> { unsafe fn to_impl(from: &T) -> &mut Self; }