Conventions used
There are a number of text conventions used throughout this book.
Code in text: 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: “So, now we have created our own async runtime that uses Rust’s Futures, Waker, Context, and async/await.”
A block of code is set as follows:
pub trait Future {
type Output;
fn poll(&mut self) -> PollState<Self::Output>;
} When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
struct Coroutine0 {
stack: Stack0,
state: State0,
} Any command-line input or output is written as follows:
$ cargo run
Tips or important notes
Appear like this.