Struct kb_remap::Keyboard[][src]

pub struct Keyboard { /* fields omitted */ }

A unique keyboard.

Implementations

impl Keyboard[src]

pub fn list() -> Result<Vec<Self>>[src]

List all the keyboards.

pub fn find<P>(predicate: P) -> Result<Option<Self>> where
    P: FnMut(&Self) -> bool
[src]

Find a keyboard matching the given predicate.

pub fn product_name(&self) -> &str[src]

The product name of the keyboard.

pub fn vendor_name(&self) -> &str[src]

The product name of the keyboard.

pub fn apply(&mut self, mods: Mods) -> Result<()>[src]

Apply the modifications to the keyboard.

pub fn reset(&mut self) -> Result<()>[src]

Remove all modifications from the keyboard.

Trait Implementations

impl Clone for Keyboard[src]

impl Debug for Keyboard[src]

impl Eq for Keyboard[src]

impl Hash for Keyboard[src]

impl PartialEq<Keyboard> for Keyboard[src]

impl Serialize for Keyboard[src]

impl StructuralEq for Keyboard[src]

impl StructuralPartialEq for Keyboard[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.