pub struct Coordinates {
pub column: u8,
pub row: u8,
}
Expand description
The location of a key on a device.
Locations are specified using zero-indexed values starting from the top left corner of the device.
Fields§
§column: u8
The x coordinate of the key.
row: u8
The y-coordinate of the key.
Trait Implementations§
Source§impl Debug for Coordinates
impl Debug for Coordinates
Source§impl<'de> Deserialize<'de> for Coordinates
impl<'de> Deserialize<'de> for Coordinates
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
Auto Trait Implementations§
impl Freeze for Coordinates
impl RefUnwindSafe for Coordinates
impl Send for Coordinates
impl Sync for Coordinates
impl Unpin for Coordinates
impl UnwindSafe for Coordinates
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