#[repr(C)]pub struct Win32WindowHandle {
pub hwnd: NonZero<isize>,
pub hinstance: Option<NonZero<isize>>,
}
Expand description
raw_window_handle_ffi:
This type is ABI-stable and FFI-compatible analogue for raw_window_handle::Win32WindowHandle
.
Can be converted to and from the referenced type.
Fields§
§hwnd: NonZero<isize>
A Win32 HWND
handle.
hinstance: Option<NonZero<isize>>
The GWLP_HINSTANCE
associated with this type’s HWND
.
Implementations§
Source§impl Win32WindowHandle
impl Win32WindowHandle
Sourcepub unsafe fn into(self) -> Win32WindowHandle
pub unsafe fn into(self) -> Win32WindowHandle
Converts FFI type back to the original raw_window_handle::AppKitWindowHandle
.
§Safety
Original type raw_window_handle::AppKitWindowHandle
is marked as non_exaustive
,
and therefore it is impossible to convert to it completely safely.
Trait Implementations§
Source§impl Clone for Win32WindowHandle
impl Clone for Win32WindowHandle
Source§fn clone(&self) -> Win32WindowHandle
fn clone(&self) -> Win32WindowHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Win32WindowHandle
impl Debug for Win32WindowHandle
Source§impl From<Win32WindowHandle> for RawWindowHandle
impl From<Win32WindowHandle> for RawWindowHandle
Source§fn from(val: Win32WindowHandle) -> RawWindowHandle
fn from(val: Win32WindowHandle) -> RawWindowHandle
Converts to this type from the input type.
Source§impl From<Win32WindowHandle> for Win32WindowHandle
impl From<Win32WindowHandle> for Win32WindowHandle
Source§fn from(value: Win32WindowHandle) -> Self
fn from(value: Win32WindowHandle) -> Self
Converts to this type from the input type.
Source§impl Hash for Win32WindowHandle
impl Hash for Win32WindowHandle
Source§impl PartialEq for Win32WindowHandle
impl PartialEq for Win32WindowHandle
impl Copy for Win32WindowHandle
impl Eq for Win32WindowHandle
impl Send for Win32WindowHandle
impl StructuralPartialEq for Win32WindowHandle
impl Sync for Win32WindowHandle
Auto Trait Implementations§
impl Freeze for Win32WindowHandle
impl RefUnwindSafe for Win32WindowHandle
impl Unpin for Win32WindowHandle
impl UnwindSafe for Win32WindowHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more