Trait KeySearch

Source
pub trait KeySearch {
    // Required method
    fn find_key(&self, v: char) -> Option<Key>;
}
Expand description

Trait to find a key given a single character from it. This function is useful when you don’t know what the locale of the keyboard is as numbers and symbols on a key can change (i.e. UK vs US)

Required Methods§

Source

fn find_key(&self, v: char) -> Option<Key>

Finds the key given a char from it. Returns Some(Key) if a key exists else returns None.

Implementors§

Source§

impl KeySearch for DiGraphMap<Key, Edge>

Implementation of KeySearch for the graph used to hold keys