Crate svalbard

Source

Modules§

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

Structs§

ChapterInfo
State
Stores the State of the program and the user’s data. Gets serialized after every change.

Constants§

CHAPTERS
Stores the name of all the rust book chapters. The indexes of each chapter string are referenced throughout the program.

Functions§

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.