Module design_pattern_examples_rust::helpers
source · Expand description
Contains various kinds of helper modules for the Rust adaptations of the Design Pattern Examples.
Modules
- Contains hide_cursor(), show_cursor, get_cursor_position() and set_cursor_position() for dealing with the cursor and its position in a console window.
- Contains the check_for_key() function that polls for keyboard input and returns true if a key was pressed.
- Contains random(), a function that hides how a random number is generated from a range of u32 values.
- Implementation of the titlecase() function, which converts a string to a lowercase string with an uppercase first character, suitable as the first word in a sentence.