Trait keygraph_rs::KeySearch [] [src]

pub trait KeySearch {
    fn find_key(&self, v: char) -> Option<Key>;
}

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

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

Implementors