#[repr(C)]pub struct WebHandle {
pub id: u32,
}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. 0 should be reserved for invalid / null IDs.
Trait Implementations§
Source§impl Ord for WebHandle
impl Ord for WebHandle
Source§impl PartialOrd for WebHandle
impl PartialOrd for WebHandle
impl Copy for WebHandle
impl Eq for WebHandle
impl StructuralPartialEq for WebHandle
Auto Trait Implementations§
impl Freeze for WebHandle
impl RefUnwindSafe for WebHandle
impl Send for WebHandle
impl Sync for WebHandle
impl Unpin for WebHandle
impl UnwindSafe for WebHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more