#[repr(C)]pub struct WebOffscreenCanvasWindowHandle {
pub obj: NonNull<c_void>,
}
Expand description
raw_window_handle_ffi:
This type is ABI-stable and FFI-compatible analogue for raw_window_handle::WebOffscreenCanvasWindowHandle
.
Can be converted to and from the referenced type.
Fields§
§obj: NonNull<c_void>
A pointer to the JsValue
of an OffscreenCanvas
.
Note: This uses c_void
to avoid depending on wasm-bindgen
directly.
Implementations§
Source§impl WebOffscreenCanvasWindowHandle
impl WebOffscreenCanvasWindowHandle
Sourcepub unsafe fn into(self) -> WebOffscreenCanvasWindowHandle
pub unsafe fn into(self) -> WebOffscreenCanvasWindowHandle
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 WebOffscreenCanvasWindowHandle
impl Clone for WebOffscreenCanvasWindowHandle
Source§fn clone(&self) -> WebOffscreenCanvasWindowHandle
fn clone(&self) -> WebOffscreenCanvasWindowHandle
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 From<WebOffscreenCanvasWindowHandle> for RawWindowHandle
impl From<WebOffscreenCanvasWindowHandle> for RawWindowHandle
Source§fn from(val: WebOffscreenCanvasWindowHandle) -> RawWindowHandle
fn from(val: WebOffscreenCanvasWindowHandle) -> RawWindowHandle
Converts to this type from the input type.
Source§impl From<WebOffscreenCanvasWindowHandle> for WebOffscreenCanvasWindowHandle
impl From<WebOffscreenCanvasWindowHandle> for WebOffscreenCanvasWindowHandle
Source§fn from(value: WebOffscreenCanvasWindowHandle) -> Self
fn from(value: WebOffscreenCanvasWindowHandle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WebOffscreenCanvasWindowHandle
impl PartialEq for WebOffscreenCanvasWindowHandle
Source§fn eq(&self, other: &WebOffscreenCanvasWindowHandle) -> bool
fn eq(&self, other: &WebOffscreenCanvasWindowHandle) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for WebOffscreenCanvasWindowHandle
impl Eq for WebOffscreenCanvasWindowHandle
impl Send for WebOffscreenCanvasWindowHandle
impl StructuralPartialEq for WebOffscreenCanvasWindowHandle
impl Sync for WebOffscreenCanvasWindowHandle
Auto Trait Implementations§
impl Freeze for WebOffscreenCanvasWindowHandle
impl RefUnwindSafe for WebOffscreenCanvasWindowHandle
impl Unpin for WebOffscreenCanvasWindowHandle
impl UnwindSafe for WebOffscreenCanvasWindowHandle
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