pub enum DeviceLayout {
Keyboard {
physical_layout: PhysicalLayout,
logical_layout: LogicalLayout,
},
Mouse {
physical_layout: PhysicalLayout,
},
}Expand description
The layout of the given device, with keyboards having a physical_layout and logical_layout
while mice only have a physical_layout.
Variants§
Trait Implementations§
Source§impl Clone for DeviceLayout
impl Clone for DeviceLayout
Source§fn clone(&self) -> DeviceLayout
fn clone(&self) -> DeviceLayout
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 DeviceLayout
impl Debug for DeviceLayout
Source§impl PartialEq for DeviceLayout
impl PartialEq for DeviceLayout
impl StructuralPartialEq for DeviceLayout
Auto Trait Implementations§
impl Freeze for DeviceLayout
impl RefUnwindSafe for DeviceLayout
impl Send for DeviceLayout
impl Sync for DeviceLayout
impl Unpin for DeviceLayout
impl UnwindSafe for DeviceLayout
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