Crate svalbard
Source - screens
- Has functions to display different screens to the user of the cursive TUI.
- state
- Has functions used to serialize and deserialize the program state
- ChapterInfo
- State
- Stores the State of the program and the user’s data. Gets serialized after every change.
- CHAPTERS
- Stores the name of all the rust book chapters. The indexes of each chapter string are referenced throughout the program.
- find_chapter_index
- Used to find the index of a user-inputted chapter name in the
CHAPTERS
array. Will not panic if it does not exist, returns None
instead. - smallest_value_in_hashmap
- Finds the lowest ranked chapter and returns the an Option with the index of the chapter in the
CHAPTERS
array.