Conventions used
There are a number of text conventions used throughout this book.
Code in text
: This indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Cypress performs most of its API tests via the cy.request()
method, which serves as a GET
command to the web server being tested."
A block of code is set as follows:
enum RedHatBoyState { Jumping, Running, Sliding, }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
impl RedHatBoyContext { pub fn update(mut self, frame_count: u8) -> Self { ... self.position.x += self.velocity.x; self.position.y += self.velocity.y; if self.position.y > FLOOR { self.position.y = FLOOR; }
Any command-line input or output is written as follows:
the trait `From<SlidingEndState>` is not implemented for `RedHatBoyStateMachine`
Bold: This indicates a new term, an important word, or words that you see onscreen – for instance, words in menus or dialog boxes appear in bold. Here is an example: "Upon any test launch from the GUI, users will have the ability to click on the Add New Test button."
Tips or Important Notes
Appear like this.