#[repr(C)]pub struct WebWindowHandle {
pub id: u32,
}Expand description
raw_window_handle_ffi:
This type is ABI-stable and FFI-compatible analogue for raw_window_handle::WebWindowHandle.
Can be converted to and from the referenced type.
Fields§
§id: u32An ID value inserted into the data attributes of the canvas element as ‘raw-handle’.
When accessing from JS, the attribute will automatically be called rawHandle.
Each canvas created by the windowing system should be assigned their own unique ID.
Implementations§
Source§impl WebWindowHandle
impl WebWindowHandle
Sourcepub unsafe fn into(self) -> WebWindowHandle
pub unsafe fn into(self) -> WebWindowHandle
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 WebWindowHandle
impl Clone for WebWindowHandle
Source§fn clone(&self) -> WebWindowHandle
fn clone(&self) -> WebWindowHandle
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 WebWindowHandle
impl Debug for WebWindowHandle
Source§impl From<WebWindowHandle> for RawWindowHandle
impl From<WebWindowHandle> for RawWindowHandle
Source§fn from(val: WebWindowHandle) -> RawWindowHandle
fn from(val: WebWindowHandle) -> RawWindowHandle
Converts to this type from the input type.
Source§impl From<WebWindowHandle> for WebWindowHandle
impl From<WebWindowHandle> for WebWindowHandle
Source§fn from(value: WebWindowHandle) -> Self
fn from(value: WebWindowHandle) -> Self
Converts to this type from the input type.
Source§impl Hash for WebWindowHandle
impl Hash for WebWindowHandle
Source§impl PartialEq for WebWindowHandle
impl PartialEq for WebWindowHandle
impl Copy for WebWindowHandle
impl Eq for WebWindowHandle
impl Send for WebWindowHandle
impl StructuralPartialEq for WebWindowHandle
impl Sync for WebWindowHandle
Auto Trait Implementations§
impl Freeze for WebWindowHandle
impl RefUnwindSafe for WebWindowHandle
impl Unpin for WebWindowHandle
impl UnwindSafe for WebWindowHandle
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