Struct raw_window_handle::Win32WindowHandle
source · [−]#[non_exhaustive]pub struct Win32WindowHandle {
pub hwnd: *mut c_void,
pub hinstance: *mut c_void,
}
Expand description
Raw window handle for Win32.
Construction
let mut window_handle = Win32WindowHandle::empty();
/* set fields */
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.hwnd: *mut c_void
A Win32 HWND
handle.
hinstance: *mut c_void
The HINSTANCE
associated with this type’s HWND
.
Implementations
Trait Implementations
sourceimpl Clone for Win32WindowHandle
impl Clone for Win32WindowHandle
sourcefn clone(&self) -> Win32WindowHandle
fn clone(&self) -> Win32WindowHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Win32WindowHandle
impl Debug for Win32WindowHandle
sourceimpl Hash for Win32WindowHandle
impl Hash for Win32WindowHandle
sourceimpl PartialEq<Win32WindowHandle> for Win32WindowHandle
impl PartialEq<Win32WindowHandle> for Win32WindowHandle
sourcefn eq(&self, other: &Win32WindowHandle) -> bool
fn eq(&self, other: &Win32WindowHandle) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Win32WindowHandle) -> bool
fn ne(&self, other: &Win32WindowHandle) -> bool
This method tests for !=
.
impl Copy for Win32WindowHandle
impl Eq for Win32WindowHandle
impl StructuralEq for Win32WindowHandle
impl StructuralPartialEq for Win32WindowHandle
Auto Trait Implementations
impl RefUnwindSafe for Win32WindowHandle
impl !Send for Win32WindowHandle
impl !Sync for Win32WindowHandle
impl Unpin for Win32WindowHandle
impl UnwindSafe for Win32WindowHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more