Crate calc_common

source ·
Expand description

Contains shared types for the calc-rs project.

Note: the Character and MetaButton types are laid out to match the following 5x5 matrix hardwired into the current keyboard prototype. The Button ID for a given Button is row_num * 5 + col_num.

                Buttons
     0    1      2      3       4             
   .----.------.------.-------.-------.   External buttons
 0 | 0  | 1    | 2    | 3     | 4     |       25    26
   :----+------+------+-------+-------:    .-----.------.
 1 | 5  | 6    | 7    | 8     | 9     |    | Alt | Menu |
   :----+------+------+-------+-------:    '-----'------'
 2 | +  | -    | x    | /     | ^     |
   :----+------+------+-------+-------:
 3 | (  | )    | .    | Left  | Right |
   :----+------+------+-------+-------:
 4 | Up | Down | Back | Enter | Clear |
   '----'------'------'-------'-------'

Modules

Structs

Enums

Constants

Unions