summaryrefslogtreecommitdiff
path: root/vendor/windows-core/src/as_impl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/windows-core/src/as_impl.rs')
-rw-r--r--vendor/windows-core/src/as_impl.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/vendor/windows-core/src/as_impl.rs b/vendor/windows-core/src/as_impl.rs
deleted file mode 100644
index 75a8b60b..00000000
--- a/vendor/windows-core/src/as_impl.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-/// A trait for retrieving the implementation behind a COM or WinRT interface.
-///
-/// This trait is automatically implemented when using the `implement` macro.
-pub trait AsImpl<T> {
- /// # Safety
- ///
- /// The caller needs to ensure that `self` is actually implemented by the
- /// implementation `T`.
- unsafe fn as_impl(&self) -> &T {
- unsafe { self.as_impl_ptr().as_ref() }
- }
-
- /// Returns a pointer to the implementation object.
- ///
- /// # Safety
- ///
- /// The caller needs to ensure that `self` is actually implemented by the
- /// implementation `T`.
- unsafe fn as_impl_ptr(&self) -> core::ptr::NonNull<T>;
-}