pub struct NSWindowHandle(/* private fields */);Implementations§
Source§impl NSWindowHandle
impl NSWindowHandle
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Wraps a caller-owned NSWindow * for StoreKit APIs that require a window.
§Safety
ptr must point to a live NSWindow for the duration of any StoreKit call that
borrows the returned handle. The handle does not retain the window and must not be
used after the underlying window has been deallocated.
pub const fn as_raw(&self) -> *mut c_void
Trait Implementations§
Source§impl Clone for NSWindowHandle
impl Clone for NSWindowHandle
Source§fn clone(&self) -> NSWindowHandle
fn clone(&self) -> NSWindowHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NSWindowHandle
impl Debug for NSWindowHandle
Source§impl Hash for NSWindowHandle
impl Hash for NSWindowHandle
Source§impl PartialEq for NSWindowHandle
impl PartialEq for NSWindowHandle
Source§fn eq(&self, other: &NSWindowHandle) -> bool
fn eq(&self, other: &NSWindowHandle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NSWindowHandle
impl Eq for NSWindowHandle
impl StructuralPartialEq for NSWindowHandle
Auto Trait Implementations§
impl Freeze for NSWindowHandle
impl RefUnwindSafe for NSWindowHandle
impl !Send for NSWindowHandle
impl !Sync for NSWindowHandle
impl Unpin for NSWindowHandle
impl UnsafeUnpin for NSWindowHandle
impl UnwindSafe for NSWindowHandle
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