Struct raw_window_handle::WebWindowHandle
source · [−]#[non_exhaustive]pub struct WebWindowHandle {
pub id: u32,
}
Expand description
Raw window handle for the Web.
Construction
let mut window_handle = WebWindowHandle::empty();
/* set fields */
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: u32
An 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. 0 should be reserved for invalid / null IDs.
Implementations
Trait Implementations
sourceimpl Clone for WebWindowHandle
impl Clone for WebWindowHandle
sourcefn clone(&self) -> WebWindowHandle
fn clone(&self) -> WebWindowHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WebWindowHandle
impl Debug for WebWindowHandle
sourceimpl Hash for WebWindowHandle
impl Hash for WebWindowHandle
sourceimpl PartialEq<WebWindowHandle> for WebWindowHandle
impl PartialEq<WebWindowHandle> for WebWindowHandle
sourcefn eq(&self, other: &WebWindowHandle) -> bool
fn eq(&self, other: &WebWindowHandle) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WebWindowHandle) -> bool
fn ne(&self, other: &WebWindowHandle) -> bool
This method tests for !=
.
impl Copy for WebWindowHandle
impl Eq for WebWindowHandle
impl StructuralEq for WebWindowHandle
impl StructuralPartialEq for WebWindowHandle
Auto Trait Implementations
impl RefUnwindSafe for WebWindowHandle
impl Send for WebWindowHandle
impl Sync for WebWindowHandle
impl Unpin for WebWindowHandle
impl UnwindSafe for WebWindowHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more