Expand description
Indicates this type can be treated as an HWND.
⚠️ Safety ⚠️
By implementing this trait, you assert that as_hwnd
returns either:
- std::ptr::null_mut()
- A handle to a window belonging to the current thread.
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.