trait Keys<T> {
// Required methods
fn coordinate(key: KeyPadButton<T>) -> (u8, u8);
fn contains(coord: &(u8, u8)) -> bool;
}
Expand description
Encapsulates the layout of each set of keypad buttons
Required Methods§
sourcefn coordinate(key: KeyPadButton<T>) -> (u8, u8)
fn coordinate(key: KeyPadButton<T>) -> (u8, u8)
What is the coordinate of a given button
Object Safety§
This trait is not object safe.