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