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