SYMBOL INDEX (1666 symbols across 651 files) FILE: 2018-edition/ferris.js function attachFerrises (line 26) | function attachFerrises (type) { function attachFerris (line 38) | function attachFerris (element, type) { FILE: ferris.js constant FERRIS_TYPES (line 8) | const FERRIS_TYPES = [ function attachFerrises (line 32) | function attachFerrises(type) { function prepareFerrisContainer (line 64) | function prepareFerrisContainer(element, useButtons) { function createFerris (line 88) | function createFerris(type, size) { FILE: listings/ch02-guessing-game-tutorial/listing-02-01/src/main.rs function main (line 7) | fn main() { FILE: listings/ch02-guessing-game-tutorial/listing-02-02/src/main.rs function main (line 3) | fn main() { FILE: listings/ch02-guessing-game-tutorial/listing-02-03/src/main.rs function main (line 7) | fn main() { FILE: listings/ch02-guessing-game-tutorial/listing-02-04/src/main.rs function main (line 7) | fn main() { FILE: listings/ch02-guessing-game-tutorial/listing-02-05/src/main.rs function main (line 6) | fn main() { FILE: listings/ch02-guessing-game-tutorial/listing-02-06/src/main.rs function main (line 6) | fn main() { FILE: listings/ch02-guessing-game-tutorial/no-listing-01-cargo-new/src/main.rs function main (line 1) | fn main() { FILE: listings/ch02-guessing-game-tutorial/no-listing-02-without-expect/src/main.rs function main (line 3) | fn main() { FILE: listings/ch02-guessing-game-tutorial/no-listing-03-convert-string-to-number/src/main.rs function main (line 6) | fn main() { FILE: listings/ch02-guessing-game-tutorial/no-listing-04-looping/src/main.rs function main (line 6) | fn main() { FILE: listings/ch02-guessing-game-tutorial/no-listing-05-quitting/src/main.rs function main (line 6) | fn main() { FILE: listings/ch03-common-programming-concepts/listing-03-01/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/listing-03-02/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/listing-03-03/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/listing-03-04/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/listing-03-05/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-01-variables-are-immutable/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-02-adding-mut/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-03-shadowing/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-04-shadowing-can-change-types/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-05-mut-cant-change-types/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-06-floating-point/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-07-numeric-operations/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-08-boolean/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-09-char/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-10-tuples/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-11-destructuring-tuples/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-12-tuple-indexing/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-13-arrays/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-14-array-indexing/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-15-invalid-array-access/src/main.rs function main (line 3) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-16-functions/src/main.rs function main (line 1) | fn main() { function another_function (line 7) | fn another_function() { FILE: listings/ch03-common-programming-concepts/no-listing-17-functions-with-parameters/src/main.rs function main (line 1) | fn main() { function another_function (line 5) | fn another_function(x: i32) { FILE: listings/ch03-common-programming-concepts/no-listing-18-functions-with-multiple-parameters/src/main.rs function main (line 1) | fn main() { function print_labeled_measurement (line 5) | fn print_labeled_measurement(value: i32, unit_label: char) { FILE: listings/ch03-common-programming-concepts/no-listing-19-statements-vs-expressions/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-20-blocks-are-expressions/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-21-function-return-values/src/main.rs function five (line 1) | fn five() -> i32 { function main (line 5) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-22-function-parameter-and-return/src/main.rs function main (line 1) | fn main() { function plus_one (line 7) | fn plus_one(x: i32) -> i32 { FILE: listings/ch03-common-programming-concepts/no-listing-23-statements-dont-return-values/src/main.rs function main (line 1) | fn main() { function plus_one (line 7) | fn plus_one(x: i32) -> i32 { FILE: listings/ch03-common-programming-concepts/no-listing-24-comments-end-of-line/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-25-comments-above-line/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-26-if-true/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-27-if-false/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-28-if-condition-must-be-bool/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-29-if-not-equal-0/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-30-else-if/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-31-arms-must-return-same-type/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-32-5-loop-labels/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-32-loop/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-33-return-value-from-loop/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/no-listing-34-for-range/src/main.rs function main (line 1) | fn main() { FILE: listings/ch03-common-programming-concepts/output-only-01-no-type-annotations/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/listing-04-01/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/listing-04-02/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/listing-04-03/src/main.rs function main (line 1) | fn main() { function takes_ownership (line 16) | fn takes_ownership(some_string: String) { // some_string comes into scope function makes_copy (line 21) | fn makes_copy(some_integer: i32) { // some_integer comes into scope FILE: listings/ch04-understanding-ownership/listing-04-04/src/main.rs function main (line 1) | fn main() { function gives_ownership (line 13) | fn gives_ownership() -> String { // gives_ownership will move its function takes_and_gives_back (line 25) | fn takes_and_gives_back(a_string: String) -> String { FILE: listings/ch04-understanding-ownership/listing-04-05/src/main.rs function main (line 1) | fn main() { function calculate_length (line 9) | fn calculate_length(s: String) -> (String, usize) { FILE: listings/ch04-understanding-ownership/listing-04-06/src/main.rs function main (line 1) | fn main() { function change (line 7) | fn change(some_string: &String) { FILE: listings/ch04-understanding-ownership/listing-04-07/src/main.rs function first_word (line 2) | fn first_word(s: &String) -> usize { function main (line 21) | fn main() {} FILE: listings/ch04-understanding-ownership/listing-04-08/src/main.rs function first_word (line 1) | fn first_word(s: &String) -> usize { function main (line 14) | fn main() { FILE: listings/ch04-understanding-ownership/listing-04-09/src/main.rs function first_word (line 2) | fn first_word(s: &str) -> &str { function main (line 16) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-01-can-mutate-string/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-02-string-scope/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-03-string-move/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-04-cant-use-after-move/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-04b-replacement-drop/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-05-clone/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-06-copy/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-07-reference/src/main.rs function main (line 2) | fn main() { function calculate_length (line 12) | fn calculate_length(s: &String) -> usize { FILE: listings/ch04-understanding-ownership/no-listing-08-reference-with-annotations/src/main.rs function main (line 1) | fn main() { function calculate_length (line 10) | fn calculate_length(s: &String) -> usize { // s is a reference to a String FILE: listings/ch04-understanding-ownership/no-listing-09-fixes-listing-04-06/src/main.rs function main (line 1) | fn main() { function change (line 7) | fn change(some_string: &mut String) { FILE: listings/ch04-understanding-ownership/no-listing-10-multiple-mut-not-allowed/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-11-muts-in-separate-scopes/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-12-immutable-and-mutable-not-allowed/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-13-reference-scope-ends/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-14-dangling-reference/src/main.rs function main (line 1) | fn main() { function dangle (line 5) | fn dangle() -> &String { FILE: listings/ch04-understanding-ownership/no-listing-15-dangling-reference-annotated/src/main.rs function main (line 1) | fn main() { function dangle (line 6) | fn dangle() -> &String { // dangle returns a reference to a String FILE: listings/ch04-understanding-ownership/no-listing-16-no-dangle/src/main.rs function main (line 1) | fn main() { function no_dangle (line 6) | fn no_dangle() -> String { FILE: listings/ch04-understanding-ownership/no-listing-17-slice/src/main.rs function main (line 1) | fn main() { FILE: listings/ch04-understanding-ownership/no-listing-18-first-word-slice/src/main.rs function first_word (line 2) | fn first_word(s: &String) -> &str { function main (line 15) | fn main() {} FILE: listings/ch04-understanding-ownership/no-listing-19-slice-error/src/main.rs function first_word (line 1) | fn first_word(s: &String) -> &str { function main (line 14) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-01/src/main.rs type User (line 2) | struct User { function main (line 10) | fn main() {} FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-02/src/main.rs type User (line 1) | struct User { function main (line 9) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-03/src/main.rs type User (line 1) | struct User { function main (line 9) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-04/src/main.rs type User (line 1) | struct User { function build_user (line 9) | fn build_user(email: String, username: String) -> User { function main (line 19) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-05/src/main.rs type User (line 1) | struct User { function build_user (line 9) | fn build_user(email: String, username: String) -> User { function main (line 19) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-06/src/main.rs type User (line 1) | struct User { function main (line 9) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-07/src/main.rs type User (line 1) | struct User { function main (line 9) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-08/src/main.rs function main (line 2) | fn main() { function area (line 13) | fn area(width: u32, height: u32) -> u32 { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-09/src/main.rs function main (line 1) | fn main() { function area (line 10) | fn area(dimensions: (u32, u32)) -> u32 { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-10/src/main.rs type Rectangle (line 1) | struct Rectangle { function main (line 6) | fn main() { function area (line 18) | fn area(rectangle: &Rectangle) -> u32 { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-11/src/main.rs type Rectangle (line 1) | struct Rectangle { function main (line 6) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-12/src/main.rs type Rectangle (line 2) | struct Rectangle { function main (line 7) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-13/src/main.rs type Rectangle (line 2) | struct Rectangle { method area (line 8) | fn area(&self) -> u32 { function main (line 13) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-14/src/main.rs function main (line 1) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-15/src/main.rs type Rectangle (line 2) | struct Rectangle { method area (line 9) | fn area(&self) -> u32 { method can_hold (line 13) | fn can_hold(&self, other: &Rectangle) -> bool { function main (line 19) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/listing-05-16/src/main.rs type Rectangle (line 2) | struct Rectangle { method area (line 9) | fn area(&self) -> u32 { method can_hold (line 15) | fn can_hold(&self, other: &Rectangle) -> bool { function main (line 21) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/no-listing-01-tuple-structs/src/main.rs type Color (line 1) | struct Color(i32, i32, i32); type Point (line 2) | struct Point(i32, i32, i32); function main (line 4) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/no-listing-02-reference-in-struct/src/main.rs type User (line 1) | struct User { function main (line 8) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/no-listing-03-associated-functions/src/main.rs type Rectangle (line 2) | struct Rectangle { method square (line 9) | fn square(size: u32) -> Self { function main (line 18) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/no-listing-04-unit-like-structs/src/main.rs type AlwaysEqual (line 1) | struct AlwaysEqual; function main (line 3) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/no-listing-05-dbg-macro/src/main.rs type Rectangle (line 2) | struct Rectangle { function main (line 7) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/no-listing-06-method-field-interaction/src/main.rs type Rectangle (line 2) | struct Rectangle { method width (line 9) | fn width(&self) -> bool { function main (line 14) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/output-only-01-debug/src/main.rs type Rectangle (line 1) | struct Rectangle { function main (line 6) | fn main() { FILE: listings/ch05-using-structs-to-structure-related-data/output-only-02-pretty-debug/src/main.rs type Rectangle (line 2) | struct Rectangle { function main (line 7) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/listing-06-01/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/listing-06-02/src/main.rs type Message (line 2) | enum Message { function main (line 10) | fn main() {} FILE: listings/ch06-enums-and-pattern-matching/listing-06-03/src/main.rs type Coin (line 2) | enum Coin { function value_in_cents (line 9) | fn value_in_cents(coin: Coin) -> u8 { function main (line 19) | fn main() {} FILE: listings/ch06-enums-and-pattern-matching/listing-06-04/src/main.rs type UsState (line 3) | enum UsState { type Coin (line 9) | enum Coin { function main (line 17) | fn main() {} FILE: listings/ch06-enums-and-pattern-matching/listing-06-05/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/listing-06-06/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/listing-06-07/src/main.rs type UsState (line 2) | enum UsState { method existed_in (line 10) | fn existed_in(&self, year: u16) -> bool { type Coin (line 20) | enum Coin { function describe_state_quarter (line 28) | fn describe_state_quarter(coin: Coin) -> Option { function main (line 41) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/listing-06-08/src/main.rs type UsState (line 2) | enum UsState { method existed_in (line 9) | fn existed_in(&self, year: u16) -> bool { type Coin (line 18) | enum Coin { function describe_state_quarter (line 26) | fn describe_state_quarter(coin: Coin) -> Option { function main (line 41) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/listing-06-09/src/main.rs type UsState (line 2) | enum UsState { method existed_in (line 9) | fn existed_in(&self, year: u16) -> bool { type Coin (line 18) | enum Coin { function describe_state_quarter (line 26) | fn describe_state_quarter(coin: Coin) -> Option { function main (line 39) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-01-defining-enums/src/main.rs type IpAddrKind (line 2) | enum IpAddrKind { function main (line 8) | fn main() { function route (line 21) | fn route(ip_kind: IpAddrKind) {} FILE: listings/ch06-enums-and-pattern-matching/no-listing-02-enum-with-data/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-03-variants-with-different-data/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-04-structs-similar-to-message-enum/src/main.rs type QuitMessage (line 2) | struct QuitMessage; type MoveMessage (line 3) | struct MoveMessage { type WriteMessage (line 7) | struct WriteMessage(String); type ChangeColorMessage (line 8) | struct ChangeColorMessage(i32, i32, i32); function main (line 11) | fn main() {} FILE: listings/ch06-enums-and-pattern-matching/no-listing-05-methods-on-enums/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-06-option-examples/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-07-cant-use-option-directly/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-08-match-arm-multiple-lines/src/main.rs type Coin (line 1) | enum Coin { function value_in_cents (line 9) | fn value_in_cents(coin: Coin) -> u8 { function main (line 22) | fn main() {} FILE: listings/ch06-enums-and-pattern-matching/no-listing-09-variable-in-pattern/src/main.rs type UsState (line 2) | enum UsState { type Coin (line 8) | enum Coin { function value_in_cents (line 16) | fn value_in_cents(coin: Coin) -> u8 { function main (line 29) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-10-non-exhaustive-match/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-12-if-let/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-13-count-and-announce-match/src/main.rs type UsState (line 2) | enum UsState { type Coin (line 8) | enum Coin { function main (line 15) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-14-count-and-announce-if-let-else/src/main.rs type UsState (line 2) | enum UsState { type Coin (line 8) | enum Coin { function main (line 15) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-15-binding-catchall/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-16-underscore-catchall/src/main.rs function main (line 1) | fn main() { FILE: listings/ch06-enums-and-pattern-matching/no-listing-17-underscore-unit/src/main.rs function main (line 1) | fn main() { FILE: listings/ch07-managing-growing-projects/listing-07-01/src/lib.rs function add_to_waitlist (line 3) | fn add_to_waitlist() {} function seat_at_table (line 5) | fn seat_at_table() {} function take_order (line 9) | fn take_order() {} function serve_order (line 11) | fn serve_order() {} function take_payment (line 13) | fn take_payment() {} FILE: listings/ch07-managing-growing-projects/listing-07-03/src/lib.rs function add_to_waitlist (line 3) | fn add_to_waitlist() {} function eat_at_restaurant (line 7) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/listing-07-05/src/lib.rs function add_to_waitlist (line 4) | fn add_to_waitlist() {} function eat_at_restaurant (line 10) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/listing-07-07/src/lib.rs function add_to_waitlist (line 4) | pub fn add_to_waitlist() {} function eat_at_restaurant (line 10) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/listing-07-08/src/lib.rs function deliver_order (line 1) | fn deliver_order() {} function fix_incorrect_order (line 4) | fn fix_incorrect_order() { function cook_order (line 9) | fn cook_order() {} FILE: listings/ch07-managing-growing-projects/listing-07-09/src/lib.rs type Breakfast (line 2) | pub struct Breakfast { method summer (line 8) | pub fn summer(toast: &str) -> Breakfast { function eat_at_restaurant (line 17) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/listing-07-10/src/lib.rs type Appetizer (line 2) | pub enum Appetizer { function eat_at_restaurant (line 8) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/listing-07-11/src/lib.rs function add_to_waitlist (line 3) | pub fn add_to_waitlist() {} function eat_at_restaurant (line 9) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/listing-07-12/src/lib.rs function add_to_waitlist (line 3) | pub fn add_to_waitlist() {} function eat_at_restaurant (line 10) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/listing-07-13/src/lib.rs function add_to_waitlist (line 3) | pub fn add_to_waitlist() {} function eat_at_restaurant (line 9) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/listing-07-14/src/main.rs function main (line 3) | fn main() { FILE: listings/ch07-managing-growing-projects/listing-07-15/src/lib.rs function function1 (line 5) | fn function1() -> fmt::Result { function function2 (line 12) | fn function2() -> io::Result<()> { FILE: listings/ch07-managing-growing-projects/listing-07-16/src/lib.rs function function1 (line 5) | fn function1() -> Result { function function2 (line 12) | fn function2() -> IoResult<()> { FILE: listings/ch07-managing-growing-projects/listing-07-17/src/lib.rs function add_to_waitlist (line 3) | pub fn add_to_waitlist() {} function eat_at_restaurant (line 9) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/listing-07-18/src/main.rs function main (line 8) | fn main() { FILE: listings/ch07-managing-growing-projects/listing-07-21-and-22/src/front_of_house.rs function add_to_waitlist (line 2) | pub fn add_to_waitlist() {} FILE: listings/ch07-managing-growing-projects/listing-07-21-and-22/src/lib.rs function eat_at_restaurant (line 5) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/no-listing-01-use-std-unnested/src/main.rs function main (line 9) | fn main() { FILE: listings/ch07-managing-growing-projects/no-listing-02-extracting-hosting/src/front_of_house/hosting.rs function add_to_waitlist (line 1) | pub fn add_to_waitlist() {} FILE: listings/ch07-managing-growing-projects/no-listing-02-extracting-hosting/src/lib.rs function eat_at_restaurant (line 5) | pub fn eat_at_restaurant() { FILE: listings/ch07-managing-growing-projects/quick-reference-example/src/garden/vegetables.rs type Asparagus (line 2) | pub struct Asparagus {} FILE: listings/ch07-managing-growing-projects/quick-reference-example/src/main.rs function main (line 5) | fn main() { FILE: listings/ch08-common-collections/listing-08-01/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-02/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-03/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-04/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-05/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-06/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-07/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-08/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-09/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-10/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-11/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-12/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-13/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-14/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-15/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-16/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-17/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-18/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-19/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-20/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-21/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-22/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-23/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-24/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/listing-08-25/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/no-listing-01-concat-multiple-strings/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/no-listing-02-format/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/no-listing-03-iterate-over-hashmap/src/main.rs function main (line 1) | fn main() { FILE: listings/ch08-common-collections/output-only-01-not-char-boundary/src/main.rs function main (line 1) | fn main() { FILE: listings/ch09-error-handling/listing-09-01/src/main.rs function main (line 1) | fn main() { FILE: listings/ch09-error-handling/listing-09-03/src/main.rs function main (line 3) | fn main() { FILE: listings/ch09-error-handling/listing-09-04/src/main.rs function main (line 3) | fn main() { FILE: listings/ch09-error-handling/listing-09-05/src/main.rs function main (line 4) | fn main() { FILE: listings/ch09-error-handling/listing-09-06/src/main.rs function read_username_from_file (line 5) | fn read_username_from_file() -> Result { function main (line 22) | fn main() { FILE: listings/ch09-error-handling/listing-09-07/src/main.rs function read_username_from_file (line 5) | fn read_username_from_file() -> Result { function main (line 13) | fn main() { FILE: listings/ch09-error-handling/listing-09-08/src/main.rs function read_username_from_file (line 5) | fn read_username_from_file() -> Result { function main (line 14) | fn main() { FILE: listings/ch09-error-handling/listing-09-09/src/main.rs function read_username_from_file (line 5) | fn read_username_from_file() -> Result { function main (line 10) | fn main() { FILE: listings/ch09-error-handling/listing-09-10/src/main.rs function main (line 3) | fn main() { FILE: listings/ch09-error-handling/listing-09-11/src/main.rs function last_char_of_first_line (line 2) | fn last_char_of_first_line(text: &str) -> Option { function main (line 7) | fn main() { FILE: listings/ch09-error-handling/listing-09-12/src/main.rs function main (line 4) | fn main() -> Result<(), Box> { FILE: listings/ch09-error-handling/listing-09-13/src/guessing_game.rs type Guess (line 1) | pub struct Guess { method new (line 6) | pub fn new(value: i32) -> Guess { method value (line 14) | pub fn value(&self) -> i32 { FILE: listings/ch09-error-handling/listing-09-13/src/main.rs function main (line 8) | fn main() { FILE: listings/ch09-error-handling/no-listing-01-panic/src/main.rs function main (line 1) | fn main() { FILE: listings/ch09-error-handling/no-listing-04-unwrap/src/main.rs function main (line 3) | fn main() { FILE: listings/ch09-error-handling/no-listing-05-expect/src/main.rs function main (line 3) | fn main() { FILE: listings/ch09-error-handling/no-listing-08-unwrap-that-cant-fail/src/main.rs function main (line 1) | fn main() { FILE: listings/ch09-error-handling/no-listing-09-guess-out-of-range/src/main.rs function main (line 5) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-01/src/main.rs function main (line 2) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-02/src/main.rs function main (line 1) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-03/src/main.rs function largest (line 2) | fn largest(list: &[i32]) -> &i32 { function main (line 14) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-04/src/main.rs function largest_i32 (line 2) | fn largest_i32(list: &[i32]) -> &i32 { function largest_char (line 14) | fn largest_char(list: &[char]) -> &char { function main (line 26) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-05/src/main.rs function largest (line 1) | fn largest(list: &[T]) -> &T { function main (line 13) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-06/src/main.rs type Point (line 1) | struct Point { function main (line 6) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-07/src/main.rs type Point (line 1) | struct Point { function main (line 6) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-08/src/main.rs type Point (line 1) | struct Point { function main (line 6) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-09/src/main.rs type Point (line 1) | struct Point { function x (line 7) | fn x(&self) -> &T { function main (line 12) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-10/src/main.rs type Point (line 1) | struct Point { function x (line 7) | fn x(&self) -> &T { function distance_from_origin (line 14) | fn distance_from_origin(&self) -> f32 { function main (line 20) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-11/src/main.rs type Point (line 1) | struct Point { function mixup (line 7) | fn mixup(self, other: Point) -> Point { function main (line 15) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-12/src/lib.rs type Summary (line 1) | pub trait Summary { method summarize (line 2) | fn summarize(&self) -> String; FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-13/src/lib.rs type Summary (line 1) | pub trait Summary { method summarize (line 2) | fn summarize(&self) -> String; method summarize (line 14) | fn summarize(&self) -> String { method summarize (line 27) | fn summarize(&self) -> String { type NewsArticle (line 6) | pub struct NewsArticle { type SocialPost (line 19) | pub struct SocialPost { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-14/src/lib.rs type Summary (line 2) | pub trait Summary { method summarize (line 3) | fn summarize(&self) -> String { method summarize (line 26) | fn summarize(&self) -> String { type NewsArticle (line 9) | pub struct NewsArticle { type SocialPost (line 18) | pub struct SocialPost { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-15/src/lib.rs type Pair (line 3) | struct Pair { function new (line 9) | fn new(x: T, y: T) -> Self { function cmp_display (line 15) | fn cmp_display(&self) { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-16/src/main.rs function main (line 1) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-17/src/main.rs function main (line 1) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-18/src/main.rs function main (line 1) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-19/src/main.rs function main (line 1) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-20/src/main.rs function main (line 1) | fn main() { function longest (line 10) | fn longest(x: &str, y: &str) -> &str { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-21/src/main.rs function main (line 1) | fn main() { function longest (line 10) | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-22/src/main.rs function main (line 2) | fn main() { function longest (line 13) | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-23/src/main.rs function main (line 2) | fn main() { function longest (line 13) | fn longest<'a>(x: &'a str, y: &'a str) -> &'a str { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-24/src/main.rs type ImportantExcerpt (line 1) | struct ImportantExcerpt<'a> { function main (line 5) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/listing-10-25/src/main.rs function first_word (line 2) | fn first_word(s: &str) -> &str { function main (line 15) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-01-calling-trait-method/src/lib.rs type Summary (line 1) | pub trait Summary { method summarize (line 2) | fn summarize(&self) -> String; method summarize (line 13) | fn summarize(&self) -> String { method summarize (line 26) | fn summarize(&self) -> String { type NewsArticle (line 5) | pub struct NewsArticle { type SocialPost (line 18) | pub struct SocialPost { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-01-calling-trait-method/src/main.rs function main (line 3) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-02-calling-default-impl/src/lib.rs type Summary (line 1) | pub trait Summary { method summarize (line 2) | fn summarize(&self) -> String { method summarize (line 24) | fn summarize(&self) -> String { type NewsArticle (line 7) | pub struct NewsArticle { type SocialPost (line 16) | pub struct SocialPost { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-02-calling-default-impl/src/main.rs function main (line 3) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-03-default-impl-calls-other-methods/src/lib.rs type Summary (line 2) | pub trait Summary { method summarize_author (line 3) | fn summarize_author(&self) -> String; method summarize (line 5) | fn summarize(&self) -> String { method summarize_author (line 20) | fn summarize_author(&self) -> String { type SocialPost (line 11) | pub struct SocialPost { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-03-default-impl-calls-other-methods/src/main.rs function main (line 3) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-04-traits-as-parameters/src/lib.rs type Summary (line 1) | pub trait Summary { method summarize (line 2) | fn summarize(&self) -> String; method summarize (line 13) | fn summarize(&self) -> String { method summarize (line 26) | fn summarize(&self) -> String { type NewsArticle (line 5) | pub struct NewsArticle { type SocialPost (line 18) | pub struct SocialPost { function notify (line 32) | pub fn notify(item: &impl Summary) { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-05-returning-impl-trait/src/lib.rs type Summary (line 1) | pub trait Summary { method summarize (line 2) | fn summarize(&self) -> String; method summarize (line 13) | fn summarize(&self) -> String { method summarize (line 26) | fn summarize(&self) -> String { type NewsArticle (line 5) | pub struct NewsArticle { type SocialPost (line 18) | pub struct SocialPost { function returns_summarizable (line 32) | fn returns_summarizable() -> impl Summary { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-06-impl-trait-returns-one-type/src/lib.rs type Summary (line 1) | pub trait Summary { method summarize (line 2) | fn summarize(&self) -> String; method summarize (line 13) | fn summarize(&self) -> String { method summarize (line 26) | fn summarize(&self) -> String { type NewsArticle (line 5) | pub struct NewsArticle { type SocialPost (line 18) | pub struct SocialPost { function returns_summarizable (line 32) | fn returns_summarizable(switch: bool) -> impl Summary { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-07-where-clause/src/lib.rs function some_function (line 2) | fn some_function(t: &T, u: &U) -> i32 FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-08-only-one-reference-with-lifetime/src/main.rs function main (line 1) | fn main() { function longest (line 10) | fn longest<'a>(x: &'a str, y: &str) -> &'a str { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-09-unrelated-lifetime/src/main.rs function main (line 1) | fn main() { function longest (line 10) | fn longest<'a>(x: &str, y: &str) -> &'a str { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-10-lifetimes-on-methods/src/main.rs type ImportantExcerpt (line 1) | struct ImportantExcerpt<'a> { function level (line 7) | fn level(&self) -> i32 { function announce_and_return_part (line 15) | fn announce_and_return_part(&self, announcement: &str) -> &str { function main (line 22) | fn main() { FILE: listings/ch10-generic-types-traits-and-lifetimes/no-listing-11-generics-traits-and-lifetimes/src/main.rs function main (line 1) | fn main() { function longest_with_an_announcement (line 16) | fn longest_with_an_announcement<'a, T>( FILE: listings/ch11-writing-automated-tests/listing-11-01/src/lib.rs function add (line 1) | pub fn add(left: u64, right: u64) -> u64 { function it_works (line 10) | fn it_works() { FILE: listings/ch11-writing-automated-tests/listing-11-03/src/lib.rs function add (line 1) | pub fn add(left: u64, right: u64) -> u64 { function exploration (line 10) | fn exploration() { function another (line 16) | fn another() { FILE: listings/ch11-writing-automated-tests/listing-11-05/src/lib.rs type Rectangle (line 2) | struct Rectangle { method can_hold (line 8) | fn can_hold(&self, other: &Rectangle) -> bool { FILE: listings/ch11-writing-automated-tests/listing-11-06/src/lib.rs type Rectangle (line 2) | struct Rectangle { method can_hold (line 8) | fn can_hold(&self, other: &Rectangle) -> bool { function larger_can_hold_smaller (line 19) | fn larger_can_hold_smaller() { FILE: listings/ch11-writing-automated-tests/listing-11-07/src/lib.rs function add_two (line 1) | pub fn add_two(a: u64) -> u64 { function it_adds_two (line 10) | fn it_adds_two() { FILE: listings/ch11-writing-automated-tests/listing-11-08/src/lib.rs type Guess (line 1) | pub struct Guess { method new (line 6) | pub fn new(value: i32) -> Guess { function greater_than_100 (line 21) | fn greater_than_100() { FILE: listings/ch11-writing-automated-tests/listing-11-09/src/lib.rs type Guess (line 1) | pub struct Guess { method new (line 9) | pub fn new(value: i32) -> Guess { function greater_than_100 (line 30) | fn greater_than_100() { FILE: listings/ch11-writing-automated-tests/listing-11-10/src/lib.rs function prints_and_returns_10 (line 1) | fn prints_and_returns_10(a: i32) -> i32 { function this_test_will_pass (line 11) | fn this_test_will_pass() { function this_test_will_fail (line 17) | fn this_test_will_fail() { FILE: listings/ch11-writing-automated-tests/listing-11-11/src/lib.rs function add_two (line 1) | pub fn add_two(a: u64) -> u64 { function add_two_and_two (line 10) | fn add_two_and_two() { function add_three_and_two (line 16) | fn add_three_and_two() { function one_hundred (line 22) | fn one_hundred() { FILE: listings/ch11-writing-automated-tests/listing-11-12/src/lib.rs function add_two (line 1) | pub fn add_two(a: u64) -> u64 { function internal_adder (line 5) | fn internal_adder(left: u64, right: u64) -> u64 { function internal (line 14) | fn internal() { FILE: listings/ch11-writing-automated-tests/listing-11-13/src/lib.rs function add_two (line 1) | pub fn add_two(a: usize) -> usize { function internal_adder (line 5) | fn internal_adder(left: usize, right: usize) -> usize { function internal (line 14) | fn internal() { FILE: listings/ch11-writing-automated-tests/listing-11-13/tests/integration_test.rs function it_adds_two (line 4) | fn it_adds_two() { FILE: listings/ch11-writing-automated-tests/no-listing-01-changing-test-name/src/lib.rs function add (line 1) | pub fn add(left: u64, right: u64) -> u64 { function exploration (line 10) | fn exploration() { FILE: listings/ch11-writing-automated-tests/no-listing-02-adding-another-rectangle-test/src/lib.rs type Rectangle (line 2) | struct Rectangle { method can_hold (line 8) | fn can_hold(&self, other: &Rectangle) -> bool { function larger_can_hold_smaller (line 19) | fn larger_can_hold_smaller() { function smaller_cannot_hold_larger (line 36) | fn smaller_cannot_hold_larger() { FILE: listings/ch11-writing-automated-tests/no-listing-03-introducing-a-bug/src/lib.rs type Rectangle (line 2) | struct Rectangle { method can_hold (line 10) | fn can_hold(&self, other: &Rectangle) -> bool { function larger_can_hold_smaller (line 21) | fn larger_can_hold_smaller() { function smaller_cannot_hold_larger (line 35) | fn smaller_cannot_hold_larger() { FILE: listings/ch11-writing-automated-tests/no-listing-04-bug-in-add-two/src/lib.rs function add_two (line 2) | pub fn add_two(a: u64) -> u64 { function it_adds_two (line 12) | fn it_adds_two() { FILE: listings/ch11-writing-automated-tests/no-listing-05-greeter/src/lib.rs function greeting (line 1) | pub fn greeting(name: &str) -> String { function greeting_contains_name (line 10) | fn greeting_contains_name() { FILE: listings/ch11-writing-automated-tests/no-listing-06-greeter-with-bug/src/lib.rs function greeting (line 2) | pub fn greeting(name: &str) -> String { function greeting_contains_name (line 12) | fn greeting_contains_name() { FILE: listings/ch11-writing-automated-tests/no-listing-07-custom-failure-message/src/lib.rs function greeting (line 1) | pub fn greeting(name: &str) -> String { function greeting_contains_name (line 11) | fn greeting_contains_name() { FILE: listings/ch11-writing-automated-tests/no-listing-08-guess-with-bug/src/lib.rs type Guess (line 1) | pub struct Guess { method new (line 8) | pub fn new(value: i32) -> Guess { function greater_than_100 (line 24) | fn greater_than_100() { FILE: listings/ch11-writing-automated-tests/no-listing-09-guess-with-panic-msg-bug/src/lib.rs type Guess (line 1) | pub struct Guess { method new (line 6) | pub fn new(value: i32) -> Guess { function greater_than_100 (line 29) | fn greater_than_100() { FILE: listings/ch11-writing-automated-tests/no-listing-10-result-in-tests/src/lib.rs function add (line 1) | pub fn add(left: u64, right: u64) -> u64 { function it_works (line 11) | fn it_works() -> Result<(), String> { FILE: listings/ch11-writing-automated-tests/no-listing-11-ignore-a-test/src/lib.rs function add (line 1) | pub fn add(left: u64, right: u64) -> u64 { function it_works (line 11) | fn it_works() { function expensive_test (line 18) | fn expensive_test() { FILE: listings/ch11-writing-automated-tests/no-listing-12-shared-test-code-problem/src/lib.rs function add_two (line 1) | pub fn add_two(a: usize) -> usize { function internal_adder (line 5) | fn internal_adder(left: usize, right: usize) -> usize { function internal (line 14) | fn internal() { FILE: listings/ch11-writing-automated-tests/no-listing-12-shared-test-code-problem/tests/common.rs function setup (line 1) | pub fn setup() { FILE: listings/ch11-writing-automated-tests/no-listing-12-shared-test-code-problem/tests/integration_test.rs function it_adds_two (line 4) | fn it_adds_two() { FILE: listings/ch11-writing-automated-tests/no-listing-13-fix-shared-test-code-problem/src/lib.rs function add_two (line 1) | pub fn add_two(a: usize) -> usize { function internal_adder (line 5) | fn internal_adder(left: usize, right: usize) -> usize { function internal (line 14) | fn internal() { FILE: listings/ch11-writing-automated-tests/no-listing-13-fix-shared-test-code-problem/tests/common/mod.rs function setup (line 1) | pub fn setup() { FILE: listings/ch11-writing-automated-tests/no-listing-13-fix-shared-test-code-problem/tests/integration_test.rs function it_adds_two (line 6) | fn it_adds_two() { FILE: listings/ch11-writing-automated-tests/output-only-01-show-output/src/lib.rs function prints_and_returns_10 (line 1) | pub fn prints_and_returns_10(a: i32) -> i32 { function this_test_will_pass (line 11) | fn this_test_will_pass() { function this_test_will_fail (line 17) | fn this_test_will_fail() { FILE: listings/ch11-writing-automated-tests/output-only-02-single-test/src/lib.rs function add_two (line 1) | pub fn add_two(a: i32) -> i32 { function add_two_and_two (line 10) | fn add_two_and_two() { function add_three_and_two (line 15) | fn add_three_and_two() { function one_hundred (line 20) | fn one_hundred() { FILE: listings/ch11-writing-automated-tests/output-only-03-multiple-tests/src/lib.rs function add_two (line 1) | pub fn add_two(a: i32) -> i32 { function add_two_and_two (line 10) | fn add_two_and_two() { function add_three_and_two (line 15) | fn add_three_and_two() { function one_hundred (line 20) | fn one_hundred() { FILE: listings/ch11-writing-automated-tests/output-only-04-running-ignored/src/lib.rs function add (line 1) | pub fn add(left: u64, right: u64) -> u64 { function it_works (line 11) | fn it_works() { function expensive_test (line 18) | fn expensive_test() { FILE: listings/ch11-writing-automated-tests/output-only-05-single-integration/src/lib.rs function add_two (line 1) | pub fn add_two(a: usize) -> usize { function internal_adder (line 5) | fn internal_adder(left: usize, right: usize) -> usize { function internal (line 14) | fn internal() { FILE: listings/ch11-writing-automated-tests/output-only-05-single-integration/tests/integration_test.rs function it_adds_two (line 4) | fn it_adds_two() { FILE: listings/ch12-an-io-project/listing-12-01/src/main.rs function main (line 3) | fn main() { FILE: listings/ch12-an-io-project/listing-12-02/src/main.rs function main (line 3) | fn main() { FILE: listings/ch12-an-io-project/listing-12-03/src/main.rs function main (line 3) | fn main() { FILE: listings/ch12-an-io-project/listing-12-04/src/main.rs function main (line 5) | fn main() { FILE: listings/ch12-an-io-project/listing-12-05/src/main.rs function main (line 5) | fn main() { function parse_config (line 23) | fn parse_config(args: &[String]) -> (&str, &str) { FILE: listings/ch12-an-io-project/listing-12-06/src/main.rs function main (line 5) | fn main() { type Config (line 23) | struct Config { function parse_config (line 28) | fn parse_config(args: &[String]) -> Config { FILE: listings/ch12-an-io-project/listing-12-07/src/main.rs function main (line 5) | fn main() { type Config (line 26) | struct Config { method new (line 33) | fn new(args: &[String]) -> Config { FILE: listings/ch12-an-io-project/listing-12-08/src/main.rs function main (line 4) | fn main() { type Config (line 18) | struct Config { method new (line 26) | fn new(args: &[String]) -> Config { FILE: listings/ch12-an-io-project/listing-12-09/src/main.rs function main (line 4) | fn main() { type Config (line 18) | struct Config { method build (line 25) | fn build(args: &[String]) -> Result { FILE: listings/ch12-an-io-project/listing-12-10/src/main.rs function main (line 6) | fn main() { type Config (line 26) | struct Config { method build (line 32) | fn build(args: &[String]) -> Result { FILE: listings/ch12-an-io-project/listing-12-11/src/main.rs function main (line 6) | fn main() { function run (line 24) | fn run(config: Config) { type Config (line 34) | struct Config { method build (line 40) | fn build(args: &[String]) -> Result { FILE: listings/ch12-an-io-project/listing-12-12/src/main.rs function main (line 11) | fn main() { function run (line 26) | fn run(config: Config) -> Result<(), Box> { type Config (line 35) | struct Config { method build (line 41) | fn build(args: &[String]) -> Result { FILE: listings/ch12-an-io-project/listing-12-13/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { FILE: listings/ch12-an-io-project/listing-12-13/src/main.rs function main (line 6) | fn main() { type Config (line 23) | struct Config { method build (line 29) | fn build(args: &[String]) -> Result { function run (line 41) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-14/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { FILE: listings/ch12-an-io-project/listing-12-14/src/main.rs function main (line 10) | fn main() { type Config (line 31) | struct Config { method build (line 37) | fn build(args: &[String]) -> Result { function run (line 50) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-15/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function one_result (line 13) | fn one_result() { FILE: listings/ch12-an-io-project/listing-12-15/src/main.rs function main (line 8) | fn main() { type Config (line 22) | struct Config { method build (line 28) | fn build(args: &[String]) -> Result { function run (line 40) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-16/src/lib.rs function search (line 2) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function one_result (line 12) | fn one_result() { FILE: listings/ch12-an-io-project/listing-12-16/src/main.rs function main (line 8) | fn main() { type Config (line 22) | struct Config { method build (line 28) | fn build(args: &[String]) -> Result { function run (line 40) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-17/src/lib.rs function search (line 2) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function one_result (line 14) | fn one_result() { FILE: listings/ch12-an-io-project/listing-12-17/src/main.rs function main (line 8) | fn main() { type Config (line 22) | struct Config { method build (line 28) | fn build(args: &[String]) -> Result { function run (line 40) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-18/src/lib.rs function search (line 2) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function one_result (line 16) | fn one_result() { FILE: listings/ch12-an-io-project/listing-12-18/src/main.rs function main (line 8) | fn main() { type Config (line 22) | struct Config { method build (line 28) | fn build(args: &[String]) -> Result { function run (line 40) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-19/src/lib.rs function search (line 3) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function one_result (line 22) | fn one_result() { FILE: listings/ch12-an-io-project/listing-12-19/src/main.rs function main (line 8) | fn main() { type Config (line 22) | struct Config { method build (line 28) | fn build(args: &[String]) -> Result { function run (line 40) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-20/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function case_sensitive (line 19) | fn case_sensitive() { function case_insensitive (line 31) | fn case_insensitive() { FILE: listings/ch12-an-io-project/listing-12-20/src/main.rs function main (line 8) | fn main() { type Config (line 22) | struct Config { method build (line 28) | fn build(args: &[String]) -> Result { function run (line 40) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-21/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function search_case_insensitive (line 14) | pub fn search_case_insensitive<'a>( function case_sensitive (line 36) | fn case_sensitive() { function case_insensitive (line 48) | fn case_insensitive() { FILE: listings/ch12-an-io-project/listing-12-21/src/main.rs function main (line 8) | fn main() { type Config (line 22) | struct Config { method build (line 28) | fn build(args: &[String]) -> Result { function run (line 40) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-22/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function search_case_insensitive (line 14) | pub fn search_case_insensitive<'a>( function case_sensitive (line 36) | fn case_sensitive() { function case_insensitive (line 48) | fn case_insensitive() { FILE: listings/ch12-an-io-project/listing-12-22/src/main.rs function main (line 13) | fn main() { type Config (line 28) | pub struct Config { method build (line 36) | fn build(args: &[String]) -> Result { function run (line 49) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-23/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function search_case_insensitive (line 13) | pub fn search_case_insensitive<'a>( function case_sensitive (line 34) | fn case_sensitive() { function case_insensitive (line 46) | fn case_insensitive() { FILE: listings/ch12-an-io-project/listing-12-23/src/main.rs function main (line 8) | fn main() { type Config (line 22) | pub struct Config { method build (line 30) | fn build(args: &[String]) -> Result { function run (line 49) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/listing-12-24/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function search_case_insensitive (line 13) | pub fn search_case_insensitive<'a>( function case_sensitive (line 34) | fn case_sensitive() { function case_insensitive (line 46) | fn case_insensitive() { FILE: listings/ch12-an-io-project/listing-12-24/src/main.rs function main (line 9) | fn main() { type Config (line 24) | pub struct Config { method build (line 31) | fn build(args: &[String]) -> Result { function run (line 49) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/no-listing-01-handling-errors-in-main/src/main.rs function main (line 7) | fn main() { function run (line 29) | fn run(config: Config) -> Result<(), Box> { type Config (line 37) | struct Config { method build (line 43) | fn build(args: &[String]) -> Result { FILE: listings/ch12-an-io-project/no-listing-02-using-search-in-run/src/lib.rs type Config (line 4) | pub struct Config { method build (line 10) | pub fn build(args: &[String]) -> Result { function run (line 23) | pub fn run(config: Config) -> Result<(), Box> { function search (line 34) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function one_result (line 51) | fn one_result() { FILE: listings/ch12-an-io-project/no-listing-02-using-search-in-run/src/main.rs function main (line 6) | fn main() { FILE: listings/ch12-an-io-project/output-only-01-with-args/src/main.rs function main (line 3) | fn main() { FILE: listings/ch12-an-io-project/output-only-02-missing-lifetimes/src/lib.rs function search (line 1) | pub fn search(query: &str, contents: &str) -> Vec<&str> { function one_result (line 11) | fn one_result() { FILE: listings/ch12-an-io-project/output-only-02-missing-lifetimes/src/main.rs function main (line 8) | fn main() { type Config (line 22) | struct Config { method build (line 28) | fn build(args: &[String]) -> Result { function run (line 40) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch12-an-io-project/output-only-03-multiple-matches/src/lib.rs type Config (line 4) | pub struct Config { method build (line 10) | pub fn build(args: &[String]) -> Result { function run (line 23) | pub fn run(config: Config) -> Result<(), Box> { function search (line 34) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function one_result (line 51) | fn one_result() { FILE: listings/ch12-an-io-project/output-only-03-multiple-matches/src/main.rs function main (line 6) | fn main() { FILE: listings/ch12-an-io-project/output-only-04-no-matches/src/lib.rs type Config (line 4) | pub struct Config { method build (line 10) | pub fn build(args: &[String]) -> Result { function run (line 23) | pub fn run(config: Config) -> Result<(), Box> { function search (line 34) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function one_result (line 51) | fn one_result() { FILE: listings/ch12-an-io-project/output-only-04-no-matches/src/main.rs function main (line 6) | fn main() { FILE: listings/ch13-functional-features/listing-12-23-reproduced/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function search_case_insensitive (line 13) | pub fn search_case_insensitive<'a>( function case_sensitive (line 34) | fn case_sensitive() { function case_insensitive (line 46) | fn case_insensitive() { FILE: listings/ch13-functional-features/listing-12-23-reproduced/src/main.rs function main (line 8) | fn main() { type Config (line 22) | pub struct Config { method build (line 30) | fn build(args: &[String]) -> Result { function run (line 49) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch13-functional-features/listing-12-24-reproduced/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function search_case_insensitive (line 13) | pub fn search_case_insensitive<'a>( function case_sensitive (line 34) | fn case_sensitive() { function case_insensitive (line 46) | fn case_insensitive() { FILE: listings/ch13-functional-features/listing-12-24-reproduced/src/main.rs function main (line 9) | fn main() { type Config (line 28) | pub struct Config { method build (line 35) | fn build(args: &[String]) -> Result { function run (line 53) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch13-functional-features/listing-13-01/src/main.rs type ShirtColor (line 2) | enum ShirtColor { type Inventory (line 7) | struct Inventory { method giveaway (line 12) | fn giveaway(&self, user_preference: Option) -> ShirtColor { method most_stocked (line 16) | fn most_stocked(&self) -> ShirtColor { function main (line 34) | fn main() { FILE: listings/ch13-functional-features/listing-13-02/src/main.rs function generate_workout (line 4) | fn generate_workout(intensity: u32, random_number: u32) { function main (line 28) | fn main() { FILE: listings/ch13-functional-features/listing-13-03/src/main.rs function main (line 1) | fn main() { FILE: listings/ch13-functional-features/listing-13-04/src/main.rs function main (line 1) | fn main() { FILE: listings/ch13-functional-features/listing-13-05/src/main.rs function main (line 1) | fn main() { FILE: listings/ch13-functional-features/listing-13-06/src/main.rs function main (line 3) | fn main() { FILE: listings/ch13-functional-features/listing-13-07/src/main.rs type Rectangle (line 2) | struct Rectangle { function main (line 7) | fn main() { FILE: listings/ch13-functional-features/listing-13-08/src/main.rs type Rectangle (line 2) | struct Rectangle { function main (line 7) | fn main() { FILE: listings/ch13-functional-features/listing-13-09/src/main.rs type Rectangle (line 2) | struct Rectangle { function main (line 7) | fn main() { FILE: listings/ch13-functional-features/listing-13-10/src/main.rs function main (line 1) | fn main() { FILE: listings/ch13-functional-features/listing-13-11/src/main.rs function main (line 1) | fn main() { FILE: listings/ch13-functional-features/listing-13-12/src/lib.rs function iterator_demonstration (line 5) | fn iterator_demonstration() { FILE: listings/ch13-functional-features/listing-13-13/src/lib.rs function iterator_sum (line 5) | fn iterator_sum() { FILE: listings/ch13-functional-features/listing-13-14/src/main.rs function main (line 1) | fn main() { FILE: listings/ch13-functional-features/listing-13-15/src/main.rs function main (line 1) | fn main() { FILE: listings/ch13-functional-features/listing-13-16/src/lib.rs type Shoe (line 2) | struct Shoe { function shoes_in_size (line 7) | fn shoes_in_size(shoes: Vec, shoe_size: u32) -> Vec { function filters_by_size (line 16) | fn filters_by_size() { FILE: listings/ch13-functional-features/listing-13-18/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function search_case_insensitive (line 13) | pub fn search_case_insensitive<'a>( function case_sensitive (line 34) | fn case_sensitive() { function case_insensitive (line 46) | fn case_insensitive() { FILE: listings/ch13-functional-features/listing-13-18/src/main.rs function main (line 9) | fn main() { type Config (line 26) | pub struct Config { method build (line 33) | fn build(args: &[String]) -> Result { function run (line 51) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch13-functional-features/listing-13-19/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function search_case_insensitive (line 13) | pub fn search_case_insensitive<'a>( function case_sensitive (line 34) | fn case_sensitive() { function case_insensitive (line 46) | fn case_insensitive() { FILE: listings/ch13-functional-features/listing-13-19/src/main.rs function main (line 8) | fn main() { type Config (line 20) | pub struct Config { method build (line 28) | fn build( function run (line 50) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch13-functional-features/listing-13-20/src/lib.rs function search (line 1) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function search_case_insensitive (line 13) | pub fn search_case_insensitive<'a>( function case_sensitive (line 34) | fn case_sensitive() { function case_insensitive (line 46) | fn case_insensitive() { FILE: listings/ch13-functional-features/listing-13-20/src/main.rs function main (line 8) | fn main() { type Config (line 20) | pub struct Config { method build (line 28) | fn build( function run (line 54) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch13-functional-features/listing-13-22/src/lib.rs function search (line 2) | pub fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> { function search_case_insensitive (line 10) | pub fn search_case_insensitive<'a>( function case_sensitive (line 31) | fn case_sensitive() { function case_insensitive (line 43) | fn case_insensitive() { FILE: listings/ch13-functional-features/listing-13-22/src/main.rs function main (line 8) | fn main() { type Config (line 22) | struct Config { method build (line 28) | fn build(args: &[String]) -> Result { function run (line 40) | fn run(config: Config) -> Result<(), Box> { FILE: listings/ch14-more-about-cargo/listing-14-01/src/lib.rs function add_one (line 11) | pub fn add_one(x: i32) -> i32 { FILE: listings/ch14-more-about-cargo/listing-14-02/src/lib.rs function add_one (line 19) | pub fn add_one(x: i32) -> i32 { FILE: listings/ch14-more-about-cargo/listing-14-03/src/lib.rs type PrimaryColor (line 8) | pub enum PrimaryColor { type SecondaryColor (line 15) | pub enum SecondaryColor { function mix (line 27) | pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { FILE: listings/ch14-more-about-cargo/listing-14-04/src/lib.rs type PrimaryColor (line 7) | pub enum PrimaryColor { type SecondaryColor (line 14) | pub enum SecondaryColor { function mix (line 26) | pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { FILE: listings/ch14-more-about-cargo/listing-14-04/src/main.rs function main (line 4) | fn main() { FILE: listings/ch14-more-about-cargo/listing-14-05/src/lib.rs type PrimaryColor (line 14) | pub enum PrimaryColor { type SecondaryColor (line 21) | pub enum SecondaryColor { function mix (line 36) | pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { FILE: listings/ch14-more-about-cargo/listing-14-06/src/lib.rs type PrimaryColor (line 11) | pub enum PrimaryColor { type SecondaryColor (line 18) | pub enum SecondaryColor { function mix (line 30) | pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor { FILE: listings/ch14-more-about-cargo/listing-14-06/src/main.rs function main (line 5) | fn main() { FILE: listings/ch14-more-about-cargo/listing-14-07/add/add_one/src/lib.rs function add_one (line 1) | pub fn add_one(x: i32) -> i32 { FILE: listings/ch14-more-about-cargo/listing-14-07/add/adder/src/main.rs function main (line 1) | fn main() { FILE: listings/ch14-more-about-cargo/no-listing-02-workspace-with-two-crates/add/add_one/src/lib.rs function add_one (line 1) | pub fn add_one(x: i32) -> i32 { FILE: listings/ch14-more-about-cargo/no-listing-02-workspace-with-two-crates/add/adder/src/main.rs function main (line 1) | fn main() { FILE: listings/ch14-more-about-cargo/no-listing-03-workspace-with-external-dependency/add/add_one/src/lib.rs function add_one (line 3) | pub fn add_one(x: i32) -> i32 { FILE: listings/ch14-more-about-cargo/no-listing-03-workspace-with-external-dependency/add/adder/src/main.rs function main (line 3) | fn main() { FILE: listings/ch14-more-about-cargo/no-listing-04-workspace-with-tests/add/add_one/src/lib.rs function add_one (line 1) | pub fn add_one(x: i32) -> i32 { function it_works (line 10) | fn it_works() { FILE: listings/ch14-more-about-cargo/no-listing-04-workspace-with-tests/add/adder/src/main.rs function main (line 3) | fn main() { FILE: listings/ch14-more-about-cargo/output-only-02-add-one/add/add_one/src/lib.rs function add (line 1) | pub fn add(left: u64, right: u64) -> u64 { function it_works (line 10) | fn it_works() { FILE: listings/ch14-more-about-cargo/output-only-02-add-one/add/adder/src/main.rs function main (line 1) | fn main() { FILE: listings/ch14-more-about-cargo/output-only-03-use-rand/add/add_one/src/lib.rs function add_one (line 3) | pub fn add_one(x: i32) -> i32 { FILE: listings/ch14-more-about-cargo/output-only-03-use-rand/add/adder/src/main.rs function main (line 4) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-01/src/main.rs function main (line 1) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-02/src/main.rs type List (line 2) | enum List { function main (line 8) | fn main() {} FILE: listings/ch15-smart-pointers/listing-15-03/src/main.rs type List (line 1) | enum List { function main (line 11) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-05/src/main.rs type List (line 1) | enum List { function main (line 8) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-06/src/main.rs function main (line 1) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-07/src/main.rs function main (line 1) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-08/src/main.rs type MyBox (line 2) | struct MyBox(T); function new (line 5) | fn new(x: T) -> MyBox { function main (line 11) | fn main() {} FILE: listings/ch15-smart-pointers/listing-15-09/src/main.rs type MyBox (line 1) | struct MyBox(T); function new (line 4) | fn new(x: T) -> MyBox { function main (line 10) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-10/src/main.rs type Target (line 5) | type Target = T; method deref (line 7) | fn deref(&self) -> &Self::Target { type MyBox (line 13) | struct MyBox(T); function new (line 16) | fn new(x: T) -> MyBox { function main (line 21) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-11/src/main.rs function hello (line 2) | fn hello(name: &str) { function main (line 7) | fn main() {} FILE: listings/ch15-smart-pointers/listing-15-12/src/main.rs type Target (line 4) | type Target = T; method deref (line 6) | fn deref(&self) -> &T { type MyBox (line 11) | struct MyBox(T); function new (line 14) | fn new(x: T) -> MyBox { function hello (line 19) | fn hello(name: &str) { function main (line 24) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-13/src/main.rs type Target (line 4) | type Target = T; method deref (line 6) | fn deref(&self) -> &T { type MyBox (line 11) | struct MyBox(T); function new (line 14) | fn new(x: T) -> MyBox { function hello (line 19) | fn hello(name: &str) { function main (line 24) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-14/src/main.rs type CustomSmartPointer (line 1) | struct CustomSmartPointer { method drop (line 6) | fn drop(&mut self) { function main (line 11) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-15/src/main.rs type CustomSmartPointer (line 1) | struct CustomSmartPointer { method drop (line 6) | fn drop(&mut self) { function main (line 12) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-16/src/main.rs type CustomSmartPointer (line 1) | struct CustomSmartPointer { method drop (line 6) | fn drop(&mut self) { function main (line 12) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-17/src/main.rs type List (line 1) | enum List { function main (line 8) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-18/src/main.rs type List (line 1) | enum List { function main (line 9) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-19/src/main.rs type List (line 1) | enum List { function main (line 12) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-20/src/lib.rs type Messenger (line 1) | pub trait Messenger { method send (line 2) | fn send(&self, msg: &str); type LimitTracker (line 5) | pub struct LimitTracker<'a, T: Messenger> { function new (line 15) | pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> { function set_value (line 23) | pub fn set_value(&mut self, value: usize) { FILE: listings/ch15-smart-pointers/listing-15-21/src/lib.rs type Messenger (line 1) | pub trait Messenger { method send (line 2) | fn send(&self, msg: &str); method send (line 58) | fn send(&self, message: &str) { type LimitTracker (line 5) | pub struct LimitTracker<'a, T: Messenger> { function new (line 15) | pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> { function set_value (line 23) | pub fn set_value(&mut self, value: usize) { type MockMessenger (line 45) | struct MockMessenger { method new (line 50) | fn new() -> MockMessenger { function it_sends_an_over_75_percent_warning_message (line 64) | fn it_sends_an_over_75_percent_warning_message() { FILE: listings/ch15-smart-pointers/listing-15-22/src/lib.rs type Messenger (line 1) | pub trait Messenger { method send (line 2) | fn send(&self, msg: &str); method send (line 59) | fn send(&self, message: &str) { type LimitTracker (line 5) | pub struct LimitTracker<'a, T: Messenger> { function new (line 15) | pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> { function set_value (line 23) | pub fn set_value(&mut self, value: usize) { type MockMessenger (line 46) | struct MockMessenger { method new (line 51) | fn new() -> MockMessenger { function it_sends_an_over_75_percent_warning_message (line 65) | fn it_sends_an_over_75_percent_warning_message() { FILE: listings/ch15-smart-pointers/listing-15-23/src/lib.rs type Messenger (line 1) | pub trait Messenger { method send (line 2) | fn send(&self, msg: &str); method send (line 59) | fn send(&self, message: &str) { type LimitTracker (line 5) | pub struct LimitTracker<'a, T: Messenger> { function new (line 15) | pub fn new(messenger: &'a T, max: usize) -> LimitTracker<'a, T> { function set_value (line 23) | pub fn set_value(&mut self, value: usize) { type MockMessenger (line 45) | struct MockMessenger { method new (line 50) | fn new() -> MockMessenger { function it_sends_an_over_75_percent_warning_message (line 70) | fn it_sends_an_over_75_percent_warning_message() { FILE: listings/ch15-smart-pointers/listing-15-24/src/main.rs type List (line 2) | enum List { function main (line 11) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-25/src/main.rs type List (line 7) | enum List { method tail (line 13) | fn tail(&self) -> Option<&RefCell>> { function main (line 22) | fn main() {} FILE: listings/ch15-smart-pointers/listing-15-26/src/main.rs type List (line 6) | enum List { method tail (line 12) | fn tail(&self) -> Option<&RefCell>> { function main (line 21) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-27/src/main.rs type Node (line 6) | struct Node { function main (line 13) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-28/src/main.rs type Node (line 6) | struct Node { function main (line 14) | fn main() { FILE: listings/ch15-smart-pointers/listing-15-29/src/main.rs type Node (line 5) | struct Node { function main (line 12) | fn main() { FILE: listings/ch15-smart-pointers/no-listing-01-cant-borrow-immutable-as-mutable/src/main.rs function main (line 1) | fn main() { FILE: listings/ch15-smart-pointers/output-only-01-comparing-to-reference/src/main.rs function main (line 1) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-01/src/main.rs function main (line 4) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-02/src/main.rs function main (line 4) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-03/src/main.rs function main (line 3) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-04/src/main.rs function main (line 3) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-05/src/main.rs function main (line 3) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-06/src/main.rs function main (line 3) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-07/src/main.rs function main (line 4) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-08/src/main.rs function main (line 4) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-09/src/main.rs function main (line 4) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-10/src/main.rs function main (line 5) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-11/src/main.rs function main (line 5) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-12/src/main.rs function main (line 3) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-13/src/main.rs function main (line 4) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-14/src/main.rs function main (line 5) | fn main() { FILE: listings/ch16-fearless-concurrency/listing-16-15/src/main.rs function main (line 4) | fn main() { FILE: listings/ch16-fearless-concurrency/no-listing-01-join-too-early/src/main.rs function main (line 4) | fn main() { FILE: listings/ch16-fearless-concurrency/no-listing-02-no-loop-to-understand-error/src/main.rs function main (line 4) | fn main() { FILE: listings/ch16-fearless-concurrency/output-only-01-move-drop/src/main.rs function main (line 3) | fn main() { FILE: listings/ch17-async-await/listing-17-01/src/main.rs function main (line 3) | fn main() { function page_title (line 10) | async fn page_title(url: &str) -> Option { FILE: listings/ch17-async-await/listing-17-02/src/main.rs function main (line 5) | fn main() { function page_title (line 9) | async fn page_title(url: &str) -> Option { FILE: listings/ch17-async-await/listing-17-03/src/main.rs function main (line 6) | async fn main() { function page_title (line 16) | async fn page_title(url: &str) -> Option { FILE: listings/ch17-async-await/listing-17-04/src/main.rs function main (line 6) | fn main() { function page_title (line 19) | async fn page_title(url: &str) -> Option { FILE: listings/ch17-async-await/listing-17-05/src/main.rs function main (line 6) | fn main() { function page_title (line 27) | async fn page_title(url: &str) -> (&str, Option) { FILE: listings/ch17-async-await/listing-17-06/src/main.rs function main (line 6) | fn main() { FILE: listings/ch17-async-await/listing-17-07/src/main.rs function main (line 5) | fn main() { FILE: listings/ch17-async-await/listing-17-08/src/main.rs function main (line 5) | fn main() { FILE: listings/ch17-async-await/listing-17-09/src/main.rs function main (line 3) | fn main() { FILE: listings/ch17-async-await/listing-17-10/src/main.rs function main (line 5) | fn main() { FILE: listings/ch17-async-await/listing-17-11/src/main.rs function main (line 5) | fn main() { FILE: listings/ch17-async-await/listing-17-12/src/main.rs function main (line 5) | fn main() { FILE: listings/ch17-async-await/listing-17-13/src/main.rs function main (line 5) | fn main() { FILE: listings/ch17-async-await/listing-17-14/src/main.rs function main (line 5) | fn main() { function slow (line 12) | fn slow(name: &str, ms: u64) { FILE: listings/ch17-async-await/listing-17-15/src/main.rs function main (line 5) | fn main() { function slow (line 32) | fn slow(name: &str, ms: u64) { FILE: listings/ch17-async-await/listing-17-16/src/main.rs function main (line 5) | fn main() { function slow (line 39) | fn slow(name: &str, ms: u64) { FILE: listings/ch17-async-await/listing-17-17/src/main.rs function main (line 5) | fn main() { function slow (line 37) | fn slow(name: &str, ms: u64) { FILE: listings/ch17-async-await/listing-17-18/src/main.rs function main (line 5) | fn main() { FILE: listings/ch17-async-await/listing-17-19/src/main.rs function main (line 5) | fn main() { function timeout (line 22) | async fn timeout( FILE: listings/ch17-async-await/listing-17-20/src/main.rs function main (line 11) | fn main() { function timeout (line 28) | async fn timeout( FILE: listings/ch17-async-await/listing-17-21/src/main.rs function main (line 3) | fn main() { FILE: listings/ch17-async-await/listing-17-22/src/main.rs function main (line 6) | fn main() { FILE: listings/ch17-async-await/listing-17-23/src/main.rs function main (line 5) | fn main() { FILE: listings/ch17-async-await/listing-17-24/src/main.rs function main (line 11) | fn main() { FILE: listings/ch17-async-await/listing-17-25/src/main.rs function main (line 6) | fn main() { FILE: listings/ch17-async-await/no-listing-state-machine/src/lib.rs type PageTitleFuture (line 4) | enum PageTitleFuture<'a> { FILE: listings/ch17-async-await/no-listing-stream-ext/src/lib.rs type Stream (line 4) | trait Stream { method poll_next (line 6) | fn poll_next( type StreamExt (line 13) | trait StreamExt: Stream { method next (line 14) | async fn next(&mut self) -> Option FILE: listings/ch18-oop/listing-18-01/src/lib.rs type AveragedCollection (line 1) | pub struct AveragedCollection { FILE: listings/ch18-oop/listing-18-02/src/lib.rs type AveragedCollection (line 1) | pub struct AveragedCollection { method add (line 8) | pub fn add(&mut self, value: i32) { method remove (line 13) | pub fn remove(&mut self) -> Option { method average (line 24) | pub fn average(&self) -> f64 { method update_average (line 28) | fn update_average(&mut self) { FILE: listings/ch18-oop/listing-18-03/src/lib.rs type Draw (line 1) | pub trait Draw { method draw (line 2) | fn draw(&self); FILE: listings/ch18-oop/listing-18-04/src/lib.rs type Draw (line 1) | pub trait Draw { method draw (line 2) | fn draw(&self); type Screen (line 6) | pub struct Screen { FILE: listings/ch18-oop/listing-18-05/src/lib.rs type Draw (line 1) | pub trait Draw { method draw (line 2) | fn draw(&self); type Screen (line 5) | pub struct Screen { method run (line 11) | pub fn run(&self) { FILE: listings/ch18-oop/listing-18-06/src/lib.rs type Draw (line 1) | pub trait Draw { method draw (line 2) | fn draw(&self); type Screen (line 6) | pub struct Screen { function run (line 14) | pub fn run(&self) { FILE: listings/ch18-oop/listing-18-07/src/lib.rs type Draw (line 1) | pub trait Draw { method draw (line 2) | fn draw(&self); method draw (line 25) | fn draw(&self) { type Screen (line 5) | pub struct Screen { method run (line 10) | pub fn run(&self) { type Button (line 18) | pub struct Button { FILE: listings/ch18-oop/listing-18-08/src/lib.rs type Draw (line 1) | pub trait Draw { method draw (line 2) | fn draw(&self); method draw (line 24) | fn draw(&self) { type Screen (line 5) | pub struct Screen { method run (line 10) | pub fn run(&self) { type Button (line 17) | pub struct Button { FILE: listings/ch18-oop/listing-18-08/src/main.rs type SelectBox (line 4) | struct SelectBox { method draw (line 11) | fn draw(&self) { function main (line 17) | fn main() {} FILE: listings/ch18-oop/listing-18-09/src/lib.rs type Draw (line 1) | pub trait Draw { method draw (line 2) | fn draw(&self); method draw (line 24) | fn draw(&self) { type Screen (line 5) | pub struct Screen { method run (line 10) | pub fn run(&self) { type Button (line 17) | pub struct Button { FILE: listings/ch18-oop/listing-18-09/src/main.rs type SelectBox (line 3) | struct SelectBox { method draw (line 10) | fn draw(&self) { function main (line 18) | fn main() { FILE: listings/ch18-oop/listing-18-10/src/lib.rs type Draw (line 1) | pub trait Draw { method draw (line 2) | fn draw(&self); method draw (line 24) | fn draw(&self) { type Screen (line 5) | pub struct Screen { method run (line 10) | pub fn run(&self) { type Button (line 17) | pub struct Button { FILE: listings/ch18-oop/listing-18-10/src/main.rs function main (line 3) | fn main() { FILE: listings/ch18-oop/listing-18-11/src/main.rs function main (line 5) | fn main() { FILE: listings/ch18-oop/listing-18-12/src/lib.rs type Post (line 1) | pub struct Post { method new (line 7) | pub fn new() -> Post { type State (line 15) | trait State {} type Draft (line 17) | struct Draft {} FILE: listings/ch18-oop/listing-18-12/src/main.rs function main (line 3) | fn main() { FILE: listings/ch18-oop/listing-18-13/src/lib.rs type Post (line 1) | pub struct Post { method new (line 10) | pub fn new() -> Post { method add_text (line 18) | pub fn add_text(&mut self, text: &str) { type State (line 24) | trait State {} type Draft (line 26) | struct Draft {} FILE: listings/ch18-oop/listing-18-13/src/main.rs function main (line 3) | fn main() { FILE: listings/ch18-oop/listing-18-14/src/lib.rs type Post (line 1) | pub struct Post { method new (line 10) | pub fn new() -> Post { method add_text (line 17) | pub fn add_text(&mut self, text: &str) { method content (line 22) | pub fn content(&self) -> &str { type State (line 28) | trait State {} type Draft (line 30) | struct Draft {} FILE: listings/ch18-oop/listing-18-14/src/main.rs function main (line 3) | fn main() { FILE: listings/ch18-oop/listing-18-15/src/lib.rs type Post (line 1) | pub struct Post { method new (line 10) | pub fn new() -> Post { method add_text (line 17) | pub fn add_text(&mut self, text: &str) { method content (line 21) | pub fn content(&self) -> &str { method request_review (line 26) | pub fn request_review(&mut self) { type State (line 33) | trait State { method request_review (line 34) | fn request_review(self: Box) -> Box; method request_review (line 40) | fn request_review(self: Box) -> Box { method request_review (line 48) | fn request_review(self: Box) -> Box { type Draft (line 37) | struct Draft {} type PendingReview (line 45) | struct PendingReview {} FILE: listings/ch18-oop/listing-18-15/src/main.rs function main (line 3) | fn main() { FILE: listings/ch18-oop/listing-18-16/src/lib.rs type Post (line 1) | pub struct Post { method new (line 10) | pub fn new() -> Post { method add_text (line 17) | pub fn add_text(&mut self, text: &str) { method content (line 21) | pub fn content(&self) -> &str { method request_review (line 25) | pub fn request_review(&mut self) { method approve (line 32) | pub fn approve(&mut self) { type State (line 39) | trait State { method request_review (line 40) | fn request_review(self: Box) -> Box; method approve (line 41) | fn approve(self: Box) -> Box; method request_review (line 49) | fn request_review(self: Box) -> Box { method approve (line 54) | fn approve(self: Box) -> Box { method request_review (line 64) | fn request_review(self: Box) -> Box { method approve (line 69) | fn approve(self: Box) -> Box { method request_review (line 77) | fn request_review(self: Box) -> Box { method approve (line 81) | fn approve(self: Box) -> Box { type Draft (line 44) | struct Draft {} type PendingReview (line 59) | struct PendingReview {} type Published (line 74) | struct Published {} FILE: listings/ch18-oop/listing-18-16/src/main.rs function main (line 3) | fn main() { FILE: listings/ch18-oop/listing-18-17/src/lib.rs type Post (line 1) | pub struct Post { method new (line 10) | pub fn new() -> Post { method add_text (line 17) | pub fn add_text(&mut self, text: &str) { method content (line 22) | pub fn content(&self) -> &str { method request_review (line 28) | pub fn request_review(&mut self) { method approve (line 34) | pub fn approve(&mut self) { type State (line 43) | trait State { method request_review (line 44) | fn request_review(self: Box) -> Box; method approve (line 45) | fn approve(self: Box) -> Box; method request_review (line 51) | fn request_review(self: Box) -> Box { method approve (line 55) | fn approve(self: Box) -> Box { method request_review (line 63) | fn request_review(self: Box) -> Box { method approve (line 67) | fn approve(self: Box) -> Box { method request_review (line 75) | fn request_review(self: Box) -> Box { method approve (line 79) | fn approve(self: Box) -> Box { type Draft (line 48) | struct Draft {} type PendingReview (line 60) | struct PendingReview {} type Published (line 72) | struct Published {} FILE: listings/ch18-oop/listing-18-17/src/main.rs function main (line 3) | fn main() { FILE: listings/ch18-oop/listing-18-18/src/lib.rs type Post (line 1) | pub struct Post { method new (line 7) | pub fn new() -> Post { method add_text (line 14) | pub fn add_text(&mut self, text: &str) { method content (line 18) | pub fn content(&self) -> &str { method request_review (line 22) | pub fn request_review(&mut self) { method approve (line 28) | pub fn approve(&mut self) { type State (line 36) | trait State { method request_review (line 39) | fn request_review(self: Box) -> Box; method approve (line 40) | fn approve(self: Box) -> Box; method content (line 43) | fn content<'a>(&self, post: &'a Post) -> &'a str { method request_review (line 54) | fn request_review(self: Box) -> Box { method approve (line 58) | fn approve(self: Box) -> Box { method request_review (line 66) | fn request_review(self: Box) -> Box { method approve (line 70) | fn approve(self: Box) -> Box { method request_review (line 81) | fn request_review(self: Box) -> Box { method approve (line 85) | fn approve(self: Box) -> Box { method content (line 90) | fn content<'a>(&self, post: &'a Post) -> &'a str { type Draft (line 51) | struct Draft {} type PendingReview (line 63) | struct PendingReview {} type Published (line 76) | struct Published {} FILE: listings/ch18-oop/listing-18-18/src/main.rs function main (line 3) | fn main() { FILE: listings/ch18-oop/listing-18-19/src/lib.rs type Post (line 1) | pub struct Post { method new (line 10) | pub fn new() -> DraftPost { method content (line 16) | pub fn content(&self) -> &str { type DraftPost (line 5) | pub struct DraftPost { method add_text (line 22) | pub fn add_text(&mut self, text: &str) { FILE: listings/ch18-oop/listing-18-20/src/lib.rs type Post (line 1) | pub struct Post { method new (line 10) | pub fn new() -> DraftPost { method content (line 16) | pub fn content(&self) -> &str { type DraftPost (line 5) | pub struct DraftPost { method add_text (line 25) | pub fn add_text(&mut self, text: &str) { method request_review (line 30) | pub fn request_review(self) -> PendingReviewPost { type PendingReviewPost (line 37) | pub struct PendingReviewPost { method approve (line 42) | pub fn approve(self) -> Post { FILE: listings/ch18-oop/listing-18-21/src/lib.rs type Post (line 1) | pub struct Post { method new (line 10) | pub fn new() -> DraftPost { method content (line 16) | pub fn content(&self) -> &str { type DraftPost (line 5) | pub struct DraftPost { method add_text (line 22) | pub fn add_text(&mut self, text: &str) { method request_review (line 26) | pub fn request_review(self) -> PendingReviewPost { type PendingReviewPost (line 33) | pub struct PendingReviewPost { method approve (line 38) | pub fn approve(self) -> Post { FILE: listings/ch18-oop/listing-18-21/src/main.rs function main (line 3) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-01/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-02/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-03/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-04/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-05/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-06/src/main.rs function foo (line 2) | fn foo(x: i32) { function main (line 7) | fn main() {} FILE: listings/ch19-patterns-and-matching/listing-19-07/src/main.rs function print_coordinates (line 1) | fn print_coordinates(&(x, y): &(i32, i32)) { function main (line 5) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-08/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-09/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-10/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-11/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-12/src/main.rs type Point (line 1) | struct Point { function main (line 6) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-13/src/main.rs type Point (line 1) | struct Point { function main (line 6) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-14/src/main.rs type Point (line 1) | struct Point { function main (line 7) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-15/src/main.rs type Message (line 1) | enum Message { function main (line 8) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-16/src/main.rs type Color (line 1) | enum Color { type Message (line 6) | enum Message { function main (line 13) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-17/src/main.rs function foo (line 1) | fn foo(_: i32, y: i32) { function main (line 5) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-18/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-19/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-20/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-21/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-22/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-23/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-24/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-25/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-26/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-27/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-28/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/listing-19-29/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/no-listing-01-literals/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/no-listing-02-multiple-patterns/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/no-listing-03-ranges/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/no-listing-04-ranges-of-char/src/main.rs function main (line 1) | fn main() { FILE: listings/ch19-patterns-and-matching/no-listing-05-destructuring-structs-and-tuples/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-01/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-02/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-03/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-04/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-05/src/main.rs function split_at_mut (line 2) | fn split_at_mut(values: &mut [i32], mid: usize) -> (&mut [i32], &mut [i3... function main (line 11) | fn main() { FILE: listings/ch20-advanced-features/listing-20-06/src/main.rs function split_at_mut (line 4) | fn split_at_mut(values: &mut [i32], mid: usize) -> (&mut [i32], &mut [i3... function main (line 19) | fn main() { FILE: listings/ch20-advanced-features/listing-20-07/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-08/src/main.rs function abs (line 2) | fn abs(input: i32) -> i32; function main (line 5) | fn main() { FILE: listings/ch20-advanced-features/listing-20-09/src/main.rs function abs (line 2) | fn abs(input: i32) -> i32; function main (line 5) | fn main() { FILE: listings/ch20-advanced-features/listing-20-10/src/main.rs function main (line 3) | fn main() { FILE: listings/ch20-advanced-features/listing-20-11/src/main.rs function add_to_count (line 6) | unsafe fn add_to_count(inc: u32) { function main (line 12) | fn main() { FILE: listings/ch20-advanced-features/listing-20-12/src/main.rs type Foo (line 2) | unsafe trait Foo { function main (line 11) | fn main() {} FILE: listings/ch20-advanced-features/listing-20-13/src/lib.rs type Iterator (line 1) | pub trait Iterator { method next (line 4) | fn next(&mut self) -> Option; FILE: listings/ch20-advanced-features/listing-20-14/src/lib.rs type Iterator (line 1) | pub trait Iterator { method next (line 2) | fn next(&mut self) -> Option; FILE: listings/ch20-advanced-features/listing-20-15/src/main.rs type Point (line 4) | struct Point { type Output (line 10) | type Output = Point; method add (line 12) | fn add(self, other: Point) -> Point { function main (line 20) | fn main() { FILE: listings/ch20-advanced-features/listing-20-16/src/lib.rs type Millimeters (line 3) | struct Millimeters(u32); type Output (line 7) | type Output = Millimeters; method add (line 9) | fn add(self, other: Meters) -> Millimeters { type Meters (line 4) | struct Meters(u32); FILE: listings/ch20-advanced-features/listing-20-17/src/main.rs type Pilot (line 2) | trait Pilot { method fly (line 3) | fn fly(&self); method fly (line 13) | fn fly(&self) { type Wizard (line 6) | trait Wizard { method fly (line 7) | fn fly(&self); method fly (line 19) | fn fly(&self) { type Human (line 10) | struct Human; method fly (line 25) | fn fly(&self) { function main (line 31) | fn main() {} FILE: listings/ch20-advanced-features/listing-20-18/src/main.rs type Pilot (line 1) | trait Pilot { method fly (line 2) | fn fly(&self); method fly (line 12) | fn fly(&self) { type Wizard (line 5) | trait Wizard { method fly (line 6) | fn fly(&self); method fly (line 18) | fn fly(&self) { type Human (line 9) | struct Human; method fly (line 24) | fn fly(&self) { function main (line 30) | fn main() { FILE: listings/ch20-advanced-features/listing-20-19/src/main.rs type Pilot (line 1) | trait Pilot { method fly (line 2) | fn fly(&self); method fly (line 12) | fn fly(&self) { type Wizard (line 5) | trait Wizard { method fly (line 6) | fn fly(&self); method fly (line 18) | fn fly(&self) { type Human (line 9) | struct Human; method fly (line 24) | fn fly(&self) { function main (line 30) | fn main() { FILE: listings/ch20-advanced-features/listing-20-20/src/main.rs type Animal (line 1) | trait Animal { method baby_name (line 2) | fn baby_name() -> String; method baby_name (line 14) | fn baby_name() -> String { type Dog (line 5) | struct Dog; method baby_name (line 8) | fn baby_name() -> String { function main (line 19) | fn main() { FILE: listings/ch20-advanced-features/listing-20-21/src/main.rs type Animal (line 1) | trait Animal { method baby_name (line 2) | fn baby_name() -> String; method baby_name (line 14) | fn baby_name() -> String { type Dog (line 5) | struct Dog; method baby_name (line 8) | fn baby_name() -> String { function main (line 20) | fn main() { FILE: listings/ch20-advanced-features/listing-20-22/src/main.rs type Animal (line 1) | trait Animal { method baby_name (line 2) | fn baby_name() -> String; method baby_name (line 14) | fn baby_name() -> String { type Dog (line 5) | struct Dog; method baby_name (line 8) | fn baby_name() -> String { function main (line 20) | fn main() { FILE: listings/ch20-advanced-features/listing-20-23/src/main.rs type OutlinePrint (line 4) | trait OutlinePrint: fmt::Display { method outline_print (line 5) | fn outline_print(&self) { function main (line 17) | fn main() {} FILE: listings/ch20-advanced-features/listing-20-24/src/main.rs type Wrapper (line 3) | struct Wrapper(Vec); method fmt (line 6) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { function main (line 11) | fn main() { FILE: listings/ch20-advanced-features/listing-20-25/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-26/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-28/src/main.rs function add_one (line 1) | fn add_one(x: i32) -> i32 { function do_twice (line 5) | fn do_twice(f: fn(i32) -> i32, arg: i32) -> i32 { function main (line 9) | fn main() { FILE: listings/ch20-advanced-features/listing-20-29/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-30/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-31/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/listing-20-32/src/lib.rs function returns_closure (line 1) | fn returns_closure() -> impl Fn(i32) -> i32 { FILE: listings/ch20-advanced-features/listing-20-33/src/main.rs function main (line 1) | fn main() { function returns_closure (line 9) | fn returns_closure() -> impl Fn(i32) -> i32 { function returns_initialized_closure (line 13) | fn returns_initialized_closure(init: i32) -> impl Fn(i32) -> i32 { FILE: listings/ch20-advanced-features/listing-20-34/src/main.rs function main (line 1) | fn main() { function returns_closure (line 10) | fn returns_closure() -> Box i32> { function returns_initialized_closure (line 14) | fn returns_initialized_closure(init: i32) -> Box i32> { FILE: listings/ch20-advanced-features/listing-20-37/src/main.rs type Pancakes (line 5) | struct Pancakes; function main (line 7) | fn main() { FILE: listings/ch20-advanced-features/listing-20-38/hello_macro/src/lib.rs type HelloMacro (line 1) | pub trait HelloMacro { method hello_macro (line 2) | fn hello_macro(); FILE: listings/ch20-advanced-features/listing-20-39/hello_macro/src/lib.rs type HelloMacro (line 1) | pub trait HelloMacro { method hello_macro (line 2) | fn hello_macro(); FILE: listings/ch20-advanced-features/listing-20-39/pancakes/src/main.rs type Pancakes (line 3) | struct Pancakes; method hello_macro (line 6) | fn hello_macro() { function main (line 11) | fn main() { FILE: listings/ch20-advanced-features/listing-20-40/hello_macro/hello_macro_derive/src/lib.rs function hello_macro_derive (line 5) | pub fn hello_macro_derive(input: TokenStream) -> TokenStream { FILE: listings/ch20-advanced-features/listing-20-40/hello_macro/src/lib.rs type HelloMacro (line 1) | pub trait HelloMacro { method hello_macro (line 2) | fn hello_macro(); FILE: listings/ch20-advanced-features/listing-20-40/hello_macro/src/main.rs type Pancakes (line 3) | struct Pancakes; method hello_macro (line 6) | fn hello_macro() { function main (line 11) | fn main() { FILE: listings/ch20-advanced-features/listing-20-42/hello_macro/hello_macro_derive/src/lib.rs function hello_macro_derive (line 5) | pub fn hello_macro_derive(input: TokenStream) -> TokenStream { function impl_hello_macro (line 15) | fn impl_hello_macro(ast: &syn::DeriveInput) -> TokenStream { FILE: listings/ch20-advanced-features/listing-20-42/hello_macro/src/lib.rs type HelloMacro (line 1) | pub trait HelloMacro { method hello_macro (line 2) | fn hello_macro(); FILE: listings/ch20-advanced-features/listing-20-42/hello_macro/src/main.rs type Pancakes (line 3) | struct Pancakes; method hello_macro (line 6) | fn hello_macro() { function main (line 11) | fn main() { FILE: listings/ch20-advanced-features/no-listing-01-unsafe-fn/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/no-listing-02-impl-outlineprint-for-point/src/main.rs type OutlinePrint (line 3) | trait OutlinePrint: fmt::Display { method outline_print (line 4) | fn outline_print(&self) { type Point (line 16) | struct Point { function main (line 24) | fn main() { FILE: listings/ch20-advanced-features/no-listing-03-impl-display-for-point/src/main.rs type OutlinePrint (line 1) | trait OutlinePrint: fmt::Display { method outline_print (line 2) | fn outline_print(&self) { type Point (line 13) | struct Point { method fmt (line 24) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { function main (line 30) | fn main() { FILE: listings/ch20-advanced-features/no-listing-04-kilometers-alias/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/no-listing-05-write-trait/src/lib.rs type Write (line 4) | pub trait Write { method write (line 5) | fn write(&mut self, buf: &[u8]) -> Result; method flush (line 6) | fn flush(&mut self) -> Result<(), Error>; method write_all (line 8) | fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>; method write_fmt (line 9) | fn write_fmt(&mut self, fmt: fmt::Arguments) -> Result<(), Error>; FILE: listings/ch20-advanced-features/no-listing-06-result-alias/src/lib.rs type Result (line 4) | type Result = std::result::Result; type Write (line 8) | pub trait Write { method write (line 9) | fn write(&mut self, buf: &[u8]) -> Result; method flush (line 10) | fn flush(&mut self) -> Result<()>; method write_all (line 12) | fn write_all(&mut self, buf: &[u8]) -> Result<()>; method write_fmt (line 13) | fn write_fmt(&mut self, fmt: fmt::Arguments) -> Result<()>; FILE: listings/ch20-advanced-features/no-listing-07-never-type/src/lib.rs function bar (line 2) | fn bar() -> ! { FILE: listings/ch20-advanced-features/no-listing-08-match-arms-different-types/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/no-listing-09-unwrap-definition/src/lib.rs type Option (line 1) | enum Option { function unwrap (line 10) | pub fn unwrap(self) -> T { FILE: listings/ch20-advanced-features/no-listing-10-loop-returns-never/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/no-listing-11-cant-create-str/src/main.rs function main (line 1) | fn main() { FILE: listings/ch20-advanced-features/no-listing-12-generic-fn-definition/src/lib.rs function generic (line 1) | fn generic(t: T) { FILE: listings/ch20-advanced-features/no-listing-13-generic-implicit-sized-bound/src/lib.rs function generic (line 1) | fn generic(t: T) { FILE: listings/ch20-advanced-features/no-listing-14-generic-maybe-sized/src/lib.rs function generic (line 1) | fn generic(t: &T) { FILE: listings/ch20-advanced-features/no-listing-18-returns-closure/src/lib.rs function returns_closure (line 1) | fn returns_closure(init: i32) -> impl Fn(i32) -> i32 { FILE: listings/ch20-advanced-features/no-listing-21-pancakes/hello_macro/hello_macro_derive/src/lib.rs function hello_macro_derive (line 5) | pub fn hello_macro_derive(input: TokenStream) -> TokenStream { function impl_hello_macro (line 14) | fn impl_hello_macro(ast: &syn::DeriveInput) -> TokenStream { FILE: listings/ch20-advanced-features/no-listing-21-pancakes/hello_macro/src/lib.rs type HelloMacro (line 1) | pub trait HelloMacro { method hello_macro (line 2) | fn hello_macro(); FILE: listings/ch20-advanced-features/no-listing-21-pancakes/hello_macro/src/main.rs type Pancakes (line 3) | struct Pancakes; method hello_macro (line 6) | fn hello_macro() { function main (line 11) | fn main() { FILE: listings/ch20-advanced-features/no-listing-21-pancakes/pancakes/src/main.rs type Pancakes (line 5) | struct Pancakes; function main (line 7) | fn main() { FILE: listings/ch20-advanced-features/no-listing-22-iterator-on-counter/src/lib.rs type Counter (line 1) | struct Counter { method new (line 6) | fn new() -> Counter { type Item (line 13) | type Item = u32; method next (line 15) | fn next(&mut self) -> Option { FILE: listings/ch20-advanced-features/output-only-01-missing-unsafe/src/main.rs function main (line 1) | fn main() { FILE: listings/ch21-web-server/listing-21-01/src/main.rs function main (line 3) | fn main() { FILE: listings/ch21-web-server/listing-21-02/src/main.rs function main (line 6) | fn main() { function handle_connection (line 16) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-03/src/main.rs function main (line 6) | fn main() { function handle_connection (line 17) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-05/src/main.rs function main (line 10) | fn main() { function handle_connection (line 21) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-06/src/main.rs function main (line 7) | fn main() { function handle_connection (line 19) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-07/src/main.rs function main (line 7) | fn main() { function handle_connection (line 17) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-09/src/main.rs function main (line 7) | fn main() { function handle_connection (line 19) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-10/src/main.rs function main (line 12) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-11/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-12/src/main.rs function main (line 10) | fn main() { function handle_connection (line 24) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-13/src/lib.rs type ThreadPool (line 1) | pub struct ThreadPool; method new (line 12) | pub fn new(size: usize) -> ThreadPool { method execute (line 20) | pub fn execute(&self, f: F) FILE: listings/ch21-web-server/listing-21-13/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-14/src/lib.rs type ThreadPool (line 4) | pub struct ThreadPool { method new (line 19) | pub fn new(size: usize) -> ThreadPool { method execute (line 33) | pub fn execute(&self, f: F) FILE: listings/ch21-web-server/listing-21-14/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-15/src/lib.rs type ThreadPool (line 4) | pub struct ThreadPool { method new (line 19) | pub fn new(size: usize) -> ThreadPool { method execute (line 33) | pub fn execute(&self, f: F) type Worker (line 41) | struct Worker { method new (line 47) | fn new(id: usize) -> Worker { FILE: listings/ch21-web-server/listing-21-15/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-16/src/lib.rs type ThreadPool (line 4) | pub struct ThreadPool { method new (line 22) | pub fn new(size: usize) -> ThreadPool { method execute (line 38) | pub fn execute(&self, f: F) type Job (line 9) | struct Job; type Worker (line 47) | struct Worker { method new (line 53) | fn new(id: usize) -> Worker { FILE: listings/ch21-web-server/listing-21-16/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-17/src/lib.rs type ThreadPool (line 3) | pub struct ThreadPool { method new (line 22) | pub fn new(size: usize) -> ThreadPool { method execute (line 38) | pub fn execute(&self, f: F) type Job (line 8) | struct Job; type Worker (line 50) | struct Worker { method new (line 57) | fn new(id: usize, receiver: mpsc::Receiver) -> Worker { FILE: listings/ch21-web-server/listing-21-17/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-18/src/lib.rs type ThreadPool (line 9) | pub struct ThreadPool { method new (line 28) | pub fn new(size: usize) -> ThreadPool { method execute (line 47) | pub fn execute(&self, f: F) type Job (line 14) | struct Job; type Worker (line 58) | struct Worker { method new (line 65) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/listing-21-18/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-19/src/lib.rs type ThreadPool (line 6) | pub struct ThreadPool { method new (line 26) | pub fn new(size: usize) -> ThreadPool { method execute (line 43) | pub fn execute(&self, f: F) type Job (line 14) | type Job = Box; type Worker (line 56) | struct Worker { method new (line 62) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/listing-21-19/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-20/src/lib.rs type ThreadPool (line 6) | pub struct ThreadPool { method new (line 21) | pub fn new(size: usize) -> ThreadPool { method execute (line 37) | pub fn execute(&self, f: F) type Job (line 11) | type Job = Box; type Worker (line 47) | struct Worker { method new (line 56) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/listing-21-20/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-21/src/lib.rs type ThreadPool (line 6) | pub struct ThreadPool { method new (line 21) | pub fn new(size: usize) -> ThreadPool { method execute (line 37) | pub fn execute(&self, f: F) type Job (line 11) | type Job = Box; type Worker (line 47) | struct Worker { method new (line 55) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/listing-21-21/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-22/src/lib.rs type ThreadPool (line 6) | pub struct ThreadPool { method new (line 21) | pub fn new(size: usize) -> ThreadPool { method execute (line 37) | pub fn execute(&self, f: F) type Job (line 11) | type Job = Box; method drop (line 49) | fn drop(&mut self) { type Worker (line 59) | struct Worker { method new (line 65) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/listing-21-22/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-23/src/lib.rs type ThreadPool (line 7) | pub struct ThreadPool { method new (line 27) | pub fn new(size: usize) -> ThreadPool { method execute (line 50) | pub fn execute(&self, f: F) type Job (line 14) | type Job = Box; method drop (line 61) | fn drop(&mut self) { type Worker (line 73) | struct Worker { method new (line 79) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/listing-21-23/src/main.rs function main (line 10) | fn main() { function handle_connection (line 25) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-24/src/lib.rs type ThreadPool (line 6) | pub struct ThreadPool { method new (line 21) | pub fn new(size: usize) -> ThreadPool { method execute (line 40) | pub fn execute(&self, f: F) type Job (line 11) | type Job = Box; method drop (line 51) | fn drop(&mut self) { type Worker (line 62) | struct Worker { method new (line 69) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/listing-21-24/src/main.rs function main (line 10) | fn main() { function handle_connection (line 25) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/listing-21-25/src/lib.rs type ThreadPool (line 6) | pub struct ThreadPool { method new (line 21) | pub fn new(size: usize) -> ThreadPool { method execute (line 40) | pub fn execute(&self, f: F) type Job (line 11) | type Job = Box; method drop (line 51) | fn drop(&mut self) { type Worker (line 62) | struct Worker { method new (line 68) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/listing-21-25/src/main.rs function main (line 11) | fn main() { function handle_connection (line 27) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/no-listing-01-define-threadpool-struct/src/lib.rs type ThreadPool (line 1) | pub struct ThreadPool; FILE: listings/ch21-web-server/no-listing-01-define-threadpool-struct/src/main.rs function main (line 12) | fn main() { function handle_connection (line 25) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/no-listing-02-impl-threadpool-new/src/lib.rs type ThreadPool (line 1) | pub struct ThreadPool; method new (line 4) | pub fn new(size: usize) -> ThreadPool { FILE: listings/ch21-web-server/no-listing-02-impl-threadpool-new/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/no-listing-03-define-execute/src/lib.rs type ThreadPool (line 1) | pub struct ThreadPool; method new (line 7) | pub fn new(size: usize) -> ThreadPool { method execute (line 12) | pub fn execute(&self, f: F) FILE: listings/ch21-web-server/no-listing-03-define-execute/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/no-listing-04-update-drop-definition/src/lib.rs type ThreadPool (line 6) | pub struct ThreadPool { method new (line 21) | pub fn new(size: usize) -> ThreadPool { method execute (line 37) | pub fn execute(&self, f: F) type Job (line 11) | type Job = Box; method drop (line 49) | fn drop(&mut self) { type Worker (line 59) | struct Worker { method new (line 65) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/no-listing-04-update-drop-definition/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/no-listing-05-fix-worker-new/src/lib.rs type ThreadPool (line 6) | pub struct ThreadPool { method new (line 21) | pub fn new(size: usize) -> ThreadPool { method execute (line 37) | pub fn execute(&self, f: F) type Job (line 11) | type Job = Box; method drop (line 48) | fn drop(&mut self) { type Worker (line 57) | struct Worker { method new (line 64) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/no-listing-05-fix-worker-new/src/main.rs function main (line 10) | fn main() { function handle_connection (line 23) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/no-listing-06-fix-threadpool-drop/src/lib.rs type ThreadPool (line 6) | pub struct ThreadPool { method new (line 21) | pub fn new(size: usize) -> ThreadPool { method execute (line 37) | pub fn execute(&self, f: F) type Job (line 11) | type Job = Box; method drop (line 49) | fn drop(&mut self) { type Worker (line 61) | struct Worker { method new (line 67) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/no-listing-06-fix-threadpool-drop/src/main.rs function main (line 10) | fn main() { function handle_connection (line 25) | fn handle_connection(mut stream: TcpStream) { FILE: listings/ch21-web-server/no-listing-07-final-code/src/lib.rs type ThreadPool (line 6) | pub struct ThreadPool { method new (line 21) | pub fn new(size: usize) -> ThreadPool { method execute (line 40) | pub fn execute(&self, f: F) type Job (line 11) | type Job = Box; method drop (line 51) | fn drop(&mut self) { type Worker (line 64) | struct Worker { method new (line 70) | fn new(id: usize, receiver: Arc>>) -> Worker { FILE: listings/ch21-web-server/no-listing-07-final-code/src/main.rs function main (line 10) | fn main() { function handle_connection (line 25) | fn handle_connection(mut stream: TcpStream) { FILE: packages/mdbook-trpl/src/bin/figure.rs function main (line 8) | fn main() -> Result<(), String> { type Cli (line 31) | struct Cli { type Command (line 37) | enum Command { FILE: packages/mdbook-trpl/src/bin/heading.rs function main (line 8) | fn main() -> Result<(), String> { type Cli (line 27) | struct Cli { type Command (line 33) | enum Command { FILE: packages/mdbook-trpl/src/bin/listing.rs function main (line 8) | fn main() -> Result<(), String> { type Cli (line 27) | struct Cli { type Command (line 33) | enum Command { FILE: packages/mdbook-trpl/src/bin/note.rs function main (line 8) | fn main() -> Result<(), String> { type Cli (line 27) | struct Cli { type Command (line 33) | enum Command { FILE: packages/mdbook-trpl/src/config/mod.rs type Mode (line 7) | pub enum Mode { method from_context (line 14) | pub fn from_context( type Error (line 34) | pub enum Error { FILE: packages/mdbook-trpl/src/config/tests.rs type TestPreprocessor (line 18) | struct TestPreprocessor; method name (line 21) | fn name(&self) -> &str { method run (line 25) | fn run(&self, ctx: &PreprocessorContext, mut book: Book) -> Result { function no_config (line 33) | fn no_config() { function empty_config (line 75) | fn empty_config() { function specify_default (line 119) | fn specify_default() { function specify_simple (line 165) | fn specify_simple() { function specify_invalid (line 211) | fn specify_invalid() { FILE: packages/mdbook-trpl/src/figure/mod.rs type TrplFigure (line 39) | pub struct TrplFigure; method supports_renderer (line 42) | pub fn supports_renderer(&self, renderer: &str) -> bool { method name (line 48) | fn name(&self) -> &str { method run (line 52) | fn run( constant OPEN_FIGURE (line 80) | const OPEN_FIGURE: &'static str = "
"; constant CLOSE_FIGURE (line 81) | const CLOSE_FIGURE: &'static str = "
"; constant OPEN_CAPTION (line 83) | const OPEN_CAPTION: &'static str = "
"; constant CLOSE_CAPTION (line 84) | const CLOSE_CAPTION: &'static str = "
"; function rewrite_figure (line 86) | fn rewrite_figure(text: &str) -> Result { function text_of (line 202) | fn text_of(node: Node) -> Option { function bad_open (line 212) | fn bad_open(tag: &str) -> String { function bad_close (line 216) | fn bad_close(close: &str, required_open: &str) -> String { type State (line 221) | struct State<'e> { type Figure (line 227) | struct Figure<'e> { function new (line 233) | fn new() -> Figure<'e> { FILE: packages/mdbook-trpl/src/figure/tests.rs function text_without_figures_is_ignored (line 4) | fn text_without_figures_is_ignored() { function text_with_figure_replaces_it_with_simple_text (line 10) | fn text_with_figure_replaces_it_with_simple_text() { function unclosed_figure (line 34) | fn unclosed_figure() { function empty_caption (line 41) | fn empty_caption() { function unclosed_caption (line 52) | fn unclosed_caption() { FILE: packages/mdbook-trpl/src/heading/mod.rs type TrplHeading (line 12) | pub struct TrplHeading; method name (line 15) | fn name(&self) -> &str { method run (line 19) | fn run(&self, ctx: &PreprocessorContext, mut book: Book) -> Result { method supports_renderer (line 39) | fn supports_renderer(&self, renderer: &str) -> Result { function rewrite_headings (line 44) | fn rewrite_headings(src: &str, mode: Mode) -> anyhow::Result { FILE: packages/mdbook-trpl/src/heading/tests.rs function default_mode_is_unchanged (line 4) | fn default_mode_is_unchanged() { function strips_em (line 35) | fn strips_em() { function strips_nested_em (line 62) | fn strips_nested_em() { function strips_strong (line 73) | fn strips_strong() { function strips_nested_strong (line 100) | fn strips_nested_strong() { function strips_code (line 111) | fn strips_code() { function strips_html (line 138) | fn strips_html() { function strips_strikethrough (line 165) | fn strips_strikethrough() { function strips_nested_combinations (line 192) | fn strips_nested_combinations() { FILE: packages/mdbook-trpl/src/lib.rs function parser (line 27) | pub fn parser(text: &str) -> Parser<'_> { type CompositeError (line 40) | struct CompositeError(Vec); method fmt (line 43) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { FILE: packages/mdbook-trpl/src/listing/mod.rs type TrplListing (line 55) | pub struct TrplListing; method name (line 58) | fn name(&self) -> &str { method run (line 62) | fn run(&self, ctx: &PreprocessorContext, mut book: Book) -> Result { method supports_renderer (line 82) | fn supports_renderer(&self, renderer: &str) -> Result { function rewrite_listing (line 87) | fn rewrite_listing(src: &str, mode: Mode) -> Result { type RewriteState (line 171) | struct RewriteState<'e> { function open_listing (line 177) | fn open_listing( function close_listing (line 190) | fn close_listing(&mut self, tag: pulldown_cmark::CowStr<'_>) { type Listing (line 215) | struct Listing { method opening_html (line 222) | fn opening_html(&self) -> String { method closing_html (line 239) | fn closing_html(&self, trailing: &str) -> String { method opening_text (line 262) | fn opening_text(&self) -> String { method closing_text (line 269) | fn closing_text(&self, trailing: &str) -> String { type ListingBuilder (line 284) | struct ListingBuilder { method from_tag (line 291) | fn from_tag(tag: &str) -> Result { method with_number (line 333) | fn with_number(mut self, value: String) -> Self { method with_caption (line 338) | fn with_caption(mut self, value: String) -> Self { method with_file_name (line 343) | fn with_file_name(mut self, value: String) -> Self { method build (line 348) | fn build(self, mode: Mode) -> Listing { FILE: packages/mdbook-trpl/src/listing/tests.rs function default_mode_works (line 7) | fn default_mode_works() { function simple_mode_works (line 34) | fn simple_mode_works() { function listing_with_embedded_angle_brackets (line 67) | fn listing_with_embedded_angle_brackets() { function actual_listing (line 97) | fn actual_listing() { function no_filename (line 137) | fn no_filename() { function without_number (line 172) | fn without_number() { function with_unsupported_attr_name (line 199) | fn with_unsupported_attr_name() { function with_unsupported_attr_name_with_arg (line 218) | fn with_unsupported_attr_name_with_arg() { function for_number (line 241) | fn for_number() { function for_caption (line 260) | fn for_caption() { function for_file_name (line 279) | fn for_file_name() { FILE: packages/mdbook-trpl/src/note/mod.rs type TrplNote (line 29) | pub struct TrplNote; method name (line 32) | fn name(&self) -> &str { method run (line 36) | fn run(&self, _ctx: &PreprocessorContext, mut book: Book) -> Result { method supports_renderer (line 45) | fn supports_renderer(&self, renderer: &str) -> Result { function rewrite (line 50) | pub fn rewrite(text: &str) -> String { type State (line 137) | enum State<'e> { FILE: packages/mdbook-trpl/src/note/tests.rs function no_note (line 4) | fn no_note() { function with_note (line 14) | fn with_note() { function regular_blockquote (line 24) | fn regular_blockquote() { function combined (line 34) | fn combined() { function blockquote_then_note (line 44) | fn blockquote_then_note() { function note_then_blockquote (line 54) | fn note_then_blockquote() { function with_h1_note (line 64) | fn with_h1_note() { function with_h2_note (line 74) | fn with_h2_note() { function with_h3_note (line 84) | fn with_h3_note() { function with_h4_note (line 94) | fn with_h4_note() { function with_h5_note (line 104) | fn with_h5_note() { function with_h6_note (line 114) | fn with_h6_note() { function h1_then_blockquote (line 124) | fn h1_then_blockquote() { function blockquote_then_h1_note (line 135) | fn blockquote_then_h1_note() { function blockquote_with_strong (line 146) | fn blockquote_with_strong() { function normal_table (line 156) | fn normal_table() { function table_in_note (line 168) | fn table_in_note() { function table_in_quote (line 180) | fn table_in_quote() { function render_markdown (line 190) | fn render_markdown(text: &str) -> String { FILE: packages/mdbook-trpl/tests/integration/main.rs function supports_html_renderer (line 4) | fn supports_html_renderer() { function errors_for_other_renderers (line 13) | fn errors_for_other_renderers() { FILE: packages/tools/src/bin/cleanup_blockquotes.rs function main (line 14) | fn main() { function cleanup_blockquotes (line 27) | fn cleanup_blockquotes(input: String) -> String { function extra_space (line 43) | fn extra_space() { function empty_leading (line 50) | fn empty_leading() { function leading_after_extra_space_cleaned_up (line 57) | fn leading_after_extra_space_cleaned_up() { function regression_ch17_example (line 80) | fn regression_ch17_example() { FILE: packages/tools/src/bin/concat_chapters.rs function main (line 26) | fn main() { function match_files (line 45) | fn match_files( function group_by_target (line 71) | fn group_by_target( function concat_files (line 86) | fn concat_files( function ensure_dir_exists (line 119) | fn ensure_dir_exists(dir_string: &str) -> io::Result<&Path> { FILE: packages/tools/src/bin/convert_quotes.rs function main (line 4) | fn main() { FILE: packages/tools/src/bin/lfp.rs function main (line 10) | fn main() { constant USAGE (line 61) | const USAGE: &str = " type Args (line 71) | struct Args { function lint_file (line 75) | fn lint_file(path: &path::Path) -> Vec { function lint_lines (line 82) | fn lint_lines(lines: I) -> Vec function is_file_of_interest (line 101) | fn is_file_of_interest(path: &path::Path) -> bool { function is_line_of_interest (line 105) | fn is_line_of_interest(line: &str) -> bool { type LintingError (line 115) | enum LintingError { function lint_file_returns_a_vec_with_errs_when_lines_of_interest_are_found (line 126) | fn lint_file_returns_a_vec_with_errs_when_lines_of_interest_are_found() { function lint_file_returns_an_empty_vec_when_no_lines_of_interest_are_found (line 177) | fn lint_file_returns_an_empty_vec_when_no_lines_of_interest_are_found() { function is_file_of_interest_returns_false_when_the_path_is_a_directory (line 209) | fn is_file_of_interest_returns_false_when_the_path_is_a_directory() { function is_file_of_interest_returns_false_when_the_filename_does_not_have_the_md_extension (line 218) | fn is_file_of_interest_returns_false_when_the_filename_does_not_have_the... function is_file_of_interest_returns_true_when_the_filename_has_the_md_extension (line 228) | fn is_file_of_interest_returns_true_when_the_filename_has_the_md_extensi... function is_line_of_interest_does_not_report_a_line_if_the_line_contains_a_file_url_which_is_directly_followed_by_the_project_path (line 236) | fn is_line_of_interest_does_not_report_a_line_if_the_line_contains_a_fil... function is_line_of_interest_reports_a_line_if_the_line_contains_a_file_url_which_is_not_directly_followed_by_the_project_path (line 245) | fn is_line_of_interest_reports_a_line_if_the_line_contains_a_file_url_wh... FILE: packages/tools/src/bin/link2print.rs function main (line 10) | fn main() { function read_md (line 14) | fn read_md() -> String { function write_md (line 22) | fn write_md(output: String) { function parse_references (line 26) | fn parse_references(buffer: String) -> (String, HashMap) { function parse_links (line 45) | fn parse_links((buffer, ref_map): (String, HashMap)) -> ... function parse (line 83) | fn parse(source: String) -> String { function parses_inline_link (line 88) | fn parses_inline_link() { function parses_multiline_links (line 99) | fn parses_multiline_links() { function parses_reference (line 110) | fn parses_reference() { function parses_implicit_link (line 122) | fn parses_implicit_link() { function parses_refs_with_one_space_indentation (line 130) | fn parses_refs_with_one_space_indentation() { function parses_refs_with_two_space_indentation (line 139) | fn parses_refs_with_two_space_indentation() { function parses_refs_with_three_space_indentation (line 148) | fn parses_refs_with_three_space_indentation() { function rejects_refs_with_four_space_indentation (line 158) | fn rejects_refs_with_four_space_indentation() { function ignores_optional_inline_title (line 167) | fn ignores_optional_inline_title() { function parses_title_with_puctuation (line 177) | fn parses_title_with_puctuation() { function parses_name_with_punctuation (line 185) | fn parses_name_with_punctuation() { function parses_name_with_utf8 (line 191) | fn parses_name_with_utf8() { function parses_reference_with_punctuation (line 198) | fn parses_reference_with_punctuation() { function parses_reference_case_insensitively (line 207) | fn parses_reference_case_insensitively() { function parses_link_as_reference_when_reference_is_empty (line 215) | fn parses_link_as_reference_when_reference_is_empty() { function does_not_parse_link_without_reference_as_reference (line 224) | fn does_not_parse_link_without_reference_as_reference() { function parses_link_without_reference_as_reference_with_asterisks (line 234) | fn parses_link_without_reference_as_reference_with_asterisks() { function ignores_links_in_pre_sections (line 242) | fn ignores_links_in_pre_sections() { function ignores_links_in_quoted_sections (line 257) | fn ignores_links_in_quoted_sections() { function ignores_links_in_quoted_sections_containing_newlines (line 263) | fn ignores_links_in_quoted_sections_containing_newlines() { function ignores_links_in_pre_sections_while_still_handling_links (line 274) | fn ignores_links_in_pre_sections_while_still_handling_links() { function ignores_quotes_in_pre_sections (line 301) | fn ignores_quotes_in_pre_sections() { function ignores_short_quotes (line 320) | fn ignores_short_quotes() { function ignores_pre_sections_with_final_quote (line 326) | fn ignores_pre_sections_with_final_quote() { function parses_adam_p_cheatsheet (line 360) | fn parses_adam_p_cheatsheet() { FILE: packages/tools/src/bin/release_listings.rs function main (line 11) | fn main() -> Result<(), Box> { function copy_cleaned_listing_files (line 111) | fn copy_cleaned_listing_files( function copy_cleaned_rust_file (line 186) | fn copy_cleaned_rust_file( FILE: packages/tools/src/bin/remove_hidden_lines.rs function main (line 4) | fn main() { function read_md (line 8) | fn read_md() -> String { function write_md (line 16) | fn write_md(output: String) { function remove_hidden_lines (line 20) | fn remove_hidden_lines(input: &str) -> String { function hidden_line_in_code_block_is_removed (line 42) | fn hidden_line_in_code_block_is_removed() { function headings_arent_removed (line 71) | fn headings_arent_removed() { FILE: packages/tools/src/bin/remove_links.rs function main (line 6) | fn main() { FILE: packages/tools/src/bin/remove_markup.rs function main (line 6) | fn main() { function read_md (line 10) | fn read_md() -> String { function write_md (line 18) | fn write_md(output: String) { function remove_markup (line 22) | fn remove_markup(input: String) -> String { FILE: packages/trpl/src/lib.rs function block_on (line 65) | pub fn block_on(future: F) -> F::Output { function run (line 73) | pub fn run(future: F) -> F::Output { function select (line 94) | pub async fn select(f1: F1, f2: F2) -> Either function race (line 110) | pub async fn race(f1: F1, f2: F2) -> Either function get (line 120) | pub async fn get(url: &str) -> Response { type Response (line 126) | pub struct Response(reqwest::Response); method text (line 133) | pub async fn text(self) -> String { type Html (line 140) | pub struct Html { method parse (line 149) | pub fn parse(source: &str) -> Html { method select_first (line 160) | pub fn select_first<'a>( FILE: packages/trpl/tests/integration/main.rs function using_run_works (line 22) | fn using_run_works() { function re_exported_block_on_works (line 33) | fn re_exported_block_on_works() { function re_exported_spawn_works (line 39) | fn re_exported_spawn_works() { function re_exported_sleep_works (line 50) | fn re_exported_sleep_works() { function re_exported_channel_apis_work (line 59) | fn re_exported_channel_apis_work() { function join_fn (line 79) | fn join_fn() { function join3_fn (line 90) | fn join3_fn() { function join_all_fn (line 103) | fn join_all_fn() { function join_macro (line 129) | fn join_macro() { function select (line 145) | fn select() { function race_continues_to_work (line 170) | fn race_continues_to_work() { function yield_now (line 195) | fn yield_now() { function read_to_string (line 205) | fn read_to_string() { function stream_iter (line 216) | fn stream_iter() { function receiver_stream (line 236) | fn receiver_stream() { function re_exported_interval_stream_works (line 255) | fn re_exported_interval_stream_works() { function re_exported_html (line 269) | fn re_exported_html() {