Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/windows-core/src/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 650 B image not shown  

Quelle  as_impl.rs   Sprache: unbekannt

 
Spracherkennung für: .rs vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

/// 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 {
        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>;
}

[ Dauer der Verarbeitung: 0.28 Sekunden  ]