pub struct BackendDeviceKey(/* private fields */);Expand description
An opaque per-device key, derived by the platform layer from the backend’s
own device handle (winit’s DeviceId, a Win32 HANDLE, an evdev node).
Two different devices can report the same OS-level contact id at the same
time — two touchscreens, or a touchscreen and a digitizer — so the
allocator’s live table is keyed on (device, os_id) rather than os_id
alone. Teksilo never interprets the value; it only needs it to be stable for
the life of a device and distinct between devices.
Implementations§
Trait Implementations§
Source§impl Clone for BackendDeviceKey
impl Clone for BackendDeviceKey
impl Copy for BackendDeviceKey
Source§impl Debug for BackendDeviceKey
impl Debug for BackendDeviceKey
Source§impl Default for BackendDeviceKey
impl Default for BackendDeviceKey
impl Eq for BackendDeviceKey
Source§impl Hash for BackendDeviceKey
impl Hash for BackendDeviceKey
Source§impl Ord for BackendDeviceKey
impl Ord for BackendDeviceKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BackendDeviceKey
impl PartialEq for BackendDeviceKey
Source§impl PartialOrd for BackendDeviceKey
impl PartialOrd for BackendDeviceKey
impl StructuralPartialEq for BackendDeviceKey
Auto Trait Implementations§
impl Freeze for BackendDeviceKey
impl RefUnwindSafe for BackendDeviceKey
impl Send for BackendDeviceKey
impl Sync for BackendDeviceKey
impl Unpin for BackendDeviceKey
impl UnsafeUnpin for BackendDeviceKey
impl UnwindSafe for BackendDeviceKey
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