pub struct WindowHandle<H>(pub H)
where
H: Handle;
Expand description
A Backend-agnostic handle to a window used to identify it
§Serde
Using generics here with serde derive macros causes some wierd behaviour with the compiler, so
as suggested by this serde
issue, just adding #[serde(bound = "")]
everywhere the generic is declared fixes the bug.
Hopefully this get fixed at some point so we can make this more pleasant to read…
Tuple Fields§
§0: H
Trait Implementations§
Source§impl<H> Clone for WindowHandle<H>
impl<H> Clone for WindowHandle<H>
Source§fn clone(&self) -> WindowHandle<H>
fn clone(&self) -> WindowHandle<H>
Returns a copy 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<H> Debug for WindowHandle<H>
impl<H> Debug for WindowHandle<H>
Source§impl<'de, H> Deserialize<'de> for WindowHandle<H>where
H: Handle,
impl<'de, H> Deserialize<'de> for WindowHandle<H>where
H: Handle,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<H> PartialEq for WindowHandle<H>
impl<H> PartialEq for WindowHandle<H>
Source§impl<H> Serialize for WindowHandle<H>where
H: Handle,
impl<H> Serialize for WindowHandle<H>where
H: Handle,
impl<H> Copy for WindowHandle<H>
impl<H> Eq for WindowHandle<H>
impl<H> StructuralPartialEq for WindowHandle<H>where
H: Handle,
Auto Trait Implementations§
impl<H> Freeze for WindowHandle<H>where
H: Freeze,
impl<H> RefUnwindSafe for WindowHandle<H>where
H: RefUnwindSafe,
impl<H> Send for WindowHandle<H>
impl<H> Sync for WindowHandle<H>where
H: Sync,
impl<H> Unpin for WindowHandle<H>where
H: Unpin,
impl<H> UnwindSafe for WindowHandle<H>where
H: UnwindSafe,
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