pub struct NSWindowHandle(/* private fields */);Expand description
Wraps a caller-owned NSWindow * for StoreKit APIs that present UI.
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.
Trait Implementations§
Source§impl Clone for NSWindowHandle
impl Clone for NSWindowHandle
impl Copy for NSWindowHandle
Source§impl Debug for NSWindowHandle
impl Debug for NSWindowHandle
impl Eq for NSWindowHandle
Source§impl Hash for NSWindowHandle
impl Hash for NSWindowHandle
Source§impl PartialEq for NSWindowHandle
impl PartialEq for NSWindowHandle
impl StructuralPartialEq for NSWindowHandle
Auto Trait Implementations§
impl !Send for NSWindowHandle
impl !Sync for NSWindowHandle
impl Forget for NSWindowHandle
impl Freeze for NSWindowHandle
impl Move for NSWindowHandle
impl RefUnwindSafe 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