pub unsafe trait AsHWND {
    fn as_hwnd(&self) -> HWND;
}
Expand description

Indicates this type can be treated as an HWND.

⚠️ Safety ⚠️

By implementing this trait, you assert that as_hwnd returns either:

If you have any sense at all, you’ll ensure said handle remains valid at least until a &mut self method is called, or the type is dropped, or perhaps even longer.

Required methods

Implementations on Foreign Types

Implementors