[go: up one dir, main page]

windows 0.30.0

Rust for Windows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
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 implementations of the `from` interface
/// may exist.
pub trait ToImpl<T: Interface> {
    /// # Safety
    #[allow(clippy::mut_from_ref)]
    unsafe fn to_impl(from: &T) -> &mut Self;
}