pub struct RelativeKeyboard(/* private fields */);Expand description
Representation of a physical keyboard where each row is built of
RelativeKeys as a shorthand for defining each key individually.
Trait Implementations§
Source§impl Clone for RelativeKeyboard
impl Clone for RelativeKeyboard
Source§fn clone(&self) -> RelativeKeyboard
fn clone(&self) -> RelativeKeyboard
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 RelativeKeyboard
impl Debug for RelativeKeyboard
Source§impl<'de> Deserialize<'de> for RelativeKeyboard
impl<'de> Deserialize<'de> for RelativeKeyboard
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 From<RelativeKeyboard> for PhysicalKeyboard
impl From<RelativeKeyboard> for PhysicalKeyboard
Source§fn from(rkb: RelativeKeyboard) -> Self
fn from(rkb: RelativeKeyboard) -> Self
Converts to this type from the input type.
Source§impl From<Vec<Vec<RelativeKey>>> for RelativeKeyboard
impl From<Vec<Vec<RelativeKey>>> for RelativeKeyboard
Source§impl Keyboard for RelativeKeyboard
impl Keyboard for RelativeKeyboard
Source§type K = RelativeKey
type K = RelativeKey
A type representing a key.
Source§fn rows(&self) -> impl Iterator<Item = &Vec<Self::K>>
fn rows(&self) -> impl Iterator<Item = &Vec<Self::K>>
Get an iterator over each row of the keyboard.
Source§fn keys(&self) -> impl Iterator<Item = &Self::K>
fn keys(&self) -> impl Iterator<Item = &Self::K>
Get an iterator over the individual keys of the keyboard.
Source§impl PartialEq for RelativeKeyboard
impl PartialEq for RelativeKeyboard
Source§impl Serialize for RelativeKeyboard
impl Serialize for RelativeKeyboard
impl StructuralPartialEq for RelativeKeyboard
Auto Trait Implementations§
impl Freeze for RelativeKeyboard
impl RefUnwindSafe for RelativeKeyboard
impl Send for RelativeKeyboard
impl Sync for RelativeKeyboard
impl Unpin for RelativeKeyboard
impl UnwindSafe for RelativeKeyboard
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