#[repr(C)]pub struct AppKitWindowHandle {
pub ns_view: NonNull<c_void>,
}
Expand description
raw_window_handle_ffi:
This type is ABI-stable and FFI-compatible analogue for raw_window_handle::AppKitWindowHandle
.
Can be converted to and from the referenced type.
Fields§
§ns_view: NonNull<c_void>
A pointer to an NSView
object.
Implementations§
Source§impl AppKitWindowHandle
impl AppKitWindowHandle
Sourcepub unsafe fn into(self) -> AppKitWindowHandle
pub unsafe fn into(self) -> AppKitWindowHandle
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 AppKitWindowHandle
impl Clone for AppKitWindowHandle
Source§fn clone(&self) -> AppKitWindowHandle
fn clone(&self) -> AppKitWindowHandle
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 AppKitWindowHandle
impl Debug for AppKitWindowHandle
Source§impl From<AppKitWindowHandle> for AppKitWindowHandle
impl From<AppKitWindowHandle> for AppKitWindowHandle
Source§fn from(value: AppKitWindowHandle) -> Self
fn from(value: AppKitWindowHandle) -> Self
Converts to this type from the input type.
Source§impl From<AppKitWindowHandle> for RawWindowHandle
impl From<AppKitWindowHandle> for RawWindowHandle
Source§fn from(val: AppKitWindowHandle) -> RawWindowHandle
fn from(val: AppKitWindowHandle) -> RawWindowHandle
Converts to this type from the input type.
Source§impl Hash for AppKitWindowHandle
impl Hash for AppKitWindowHandle
Source§impl PartialEq for AppKitWindowHandle
impl PartialEq for AppKitWindowHandle
impl Copy for AppKitWindowHandle
impl Eq for AppKitWindowHandle
impl Send for AppKitWindowHandle
impl StructuralPartialEq for AppKitWindowHandle
impl Sync for AppKitWindowHandle
Auto Trait Implementations§
impl Freeze for AppKitWindowHandle
impl RefUnwindSafe for AppKitWindowHandle
impl Unpin for AppKitWindowHandle
impl UnwindSafe for AppKitWindowHandle
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