pub trait AsImpl<T> {
    // Required method
    unsafe fn as_impl(&self) -> &T;
}
Expand description

A trait for retrieving the implementation behind a COM or WinRT interface.

This trait is automatically implemented when using the implement macro.

Required Methods§

unsafe fn as_impl(&self) -> &T

Safety

The caller needs to ensure that self is actually implemented by the implementation T.

Implementors§

§

impl AsImpl<DragItem> for IDataObject

§

impl AsImpl<DropSource> for IDropSource

§

impl AsImpl<DropTarget> for IDropTarget

§

impl AsImpl<EnumFormatEtc> for IEnumFORMATETC

§

impl AsImpl<MediaFoundationChangeListener> for IMMNotificationClient

§

impl AsImpl<SourceReaderCallback> for IMFSourceReaderCallback

§

impl AsImpl<WasapiChangeListener> for IMMNotificationClient

§

impl<'a, K, V> AsImpl<StockMapViewIterator<'a, K, V>> for IIterator<IKeyValuePair<K, V>>where K: RuntimeType + 'static, V: RuntimeType + 'static, <K as Type<K, <K as TypeKind>::TypeKind>>::Default: Clone + Ord, <V as Type<V, <V as TypeKind>::TypeKind>>::Default: Clone,

§

impl<K, V> AsImpl<StockKeyValuePair<K, V>> for IKeyValuePair<K, V>where K: RuntimeType + 'static, V: RuntimeType + 'static, <K as Type<K, <K as TypeKind>::TypeKind>>::Default: Clone, <V as Type<V, <V as TypeKind>::TypeKind>>::Default: Clone,

§

impl<K, V> AsImpl<StockMapView<K, V>> for IIterable<IKeyValuePair<K, V>>where K: RuntimeType + 'static, V: RuntimeType + 'static, <K as Type<K, <K as TypeKind>::TypeKind>>::Default: Clone + Ord, <V as Type<V, <V as TypeKind>::TypeKind>>::Default: Clone,

§

impl<K, V> AsImpl<StockMapView<K, V>> for IMapView<K, V>where K: RuntimeType + 'static, V: RuntimeType + 'static, <K as Type<K, <K as TypeKind>::TypeKind>>::Default: Clone + Ord, <V as Type<V, <V as TypeKind>::TypeKind>>::Default: Clone,

§

impl<T> AsImpl<StockIterable<T>> for IIterable<T>where T: RuntimeType + 'static, <T as Type<T, <T as TypeKind>::TypeKind>>::Default: Clone,

§

impl<T> AsImpl<StockIterator<T>> for IIterator<T>where T: RuntimeType + 'static, <T as Type<T, <T as TypeKind>::TypeKind>>::Default: Clone,

§

impl<T> AsImpl<StockVectorView<T>> for IIterable<T>where T: RuntimeType + 'static, <T as Type<T, <T as TypeKind>::TypeKind>>::Default: Clone + PartialEq<<T as Type<T, <T as TypeKind>::TypeKind>>::Default>,

§

impl<T> AsImpl<StockVectorView<T>> for IVectorView<T>where T: RuntimeType + 'static, <T as Type<T, <T as TypeKind>::TypeKind>>::Default: Clone + PartialEq<<T as Type<T, <T as TypeKind>::TypeKind>>::Default>,

§

impl<T> AsImpl<StockVectorViewIterator<T>> for IIterator<T>where T: RuntimeType + 'static, <T as Type<T, <T as TypeKind>::TypeKind>>::Default: Clone + PartialEq<<T as Type<T, <T as TypeKind>::TypeKind>>::Default>,