by Steve Klabnik and Carol Nichols ; with contributions from the Rust Community.
.PUBLICATION, DISTRIBUTION, ETC
Place of Publication, Distribution, etc.
San Francisco :
Name of Publisher, Distributor, etc.
No Starch Press, Inc.,
Date of Publication, Distribution, etc.
2018.
PHYSICAL DESCRIPTION
Specific Material Designation and Extent of Item
1 online resource
GENERAL NOTES
Text of Note
Includes index.
CONTENTS NOTE
Text of Note
Intro; Brief Contents; Contents in Detail; Foreword; Acknowledgments; Introduction; Who Rust Is For; Teams of Developers; Students; Companies; Open Source Developers; People Who Value Speed and Stability; Who This Book Is For; How to Use This Book; Contributing to the Book and Resources; Chapter 1: Getting Started; Installation; Local Documentation; Troubleshooting; Updating and Uninstalling; Installing rustup on Windows; Installing rustup on Linux or macOS; Hello, World!; Creating a Project Directory; Writing and Running a Rust Program; Anatomy of a Rust Program
Text of Note
Adding Useful Functionality with Derived TraitsMethod Syntax; Defining Methods; Multiple impl Blocks; Associated Functions; Methods with More Parameters; Summary; Chapter 6: Enums and Pattern Matching; Defining an Enum; Enum Values; The Option Enum and Its Advantages over Null Values; The match Control Flow Operator; Patterns That Bind to Values; Matching with Option; Matches Are Exhaustive; The _ Placeholder; Concise Control Flow with if let; Summary; Chapter 7: Using Modules to Reuse and Organize Code; mod and the Filesystem; Module Definitions; Moving Modules to Other Files
Text of Note
Compiling and Running Are Separate StepsHello, Cargo!; Creating a Project with Cargo; Building and Running a Cargo Project; Building for Release; Cargo as Convention; Summary; Chapter 2: Programming a Guessing Game; Setting Up a New Project; Processing a Guess; Storing Values with Variables; Handling Potential Failure with the Result Type; Printing Values with println! Placeholders; Testing the First Part; Generating a Secret Number; Using a Crate to Get More Functionality; Generating a Random Number; Comparing the Guess to the Secret Number; Allowing Multiple Guesses with Looping
Text of Note
Dangling ReferencesThe Rules of References; The Slice Type; String Slices; Other Slices; Summary; Memory and Allocation; Chapter 5: Using Structs to Structure Related Data; Defining and Instantiating Structs; Using the Field Init Shorthand When Variables and Fields Have the Same Name; Creating Instances from Other Instances with Struct Update Syntax; Using Tuple Structs Without Named Fields to Create Different Types; Unit-Like Structs Without Any Fields; An Example Program Using Structs; Refactoring with Tuples; Refactoring with Structs: Adding More Meaning
Text of Note
Quitting After a Correct GuessHandling Invalid Input; Summary; Chapter 3: Common Programming Concepts; Variables and Mutability; Differences Between Variables and Constants; Shadowing; Data Types; Scalar Types; Compound Types; Functions; Function Parameters; Statements and Expressions; Functions with Return Values; Comments; Control Flow; if Expressions; Repetition with Loops; Summary; Chapter 4: Understanding Ownership; What Is Ownership?; Return Values and Scope; Ownership and Functions; The String Type; Variable Scope; Ownership Rules; References and Borrowing; Mutable References
0
8
8
8
8
SUMMARY OR ABSTRACT
Text of Note
"The official guide to Rust, a community-developed, systems programming language. Begins with a hands-on project to introduce the basics, then explores key concepts in depth"--
Text of Note
"The Rust Programming Language is the official book on Rust; a community-developed, systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. Rust's memory safety guarantees, enforced at compile time, safeguard your programs against the many problems that pervade other systems languages. Rust offers the control and performance of a low-level language with the helpful abstractions of a high level one, and does this all without having a garbage collector. These characteristics make Rust useful for embedding in other languages, programs with specific space and time requirements, and writing low-level code, like device drivers and operating systems. The Rust Programming Language begins with a quick hands-on project to introduce the basics, then explores key concepts in depth, such as ownership, the type system, error handling, and fearless concurrency. Detailed explanations of Rust-oriented takes on topics like pattern matching, iterators, and smart pointers combine with examples and exercises to take you from theory to practice. In addition to its thorough coverage of more granular topics, The Rust Programming Language will show you how to: -Grasp important concepts unique to Rust like ownership, borrowing, and lifetimes -Use Cargo, Rust's built-in package manager, to build your code, including downloading and building dependencies -Effectively use Rust's zero-cost abstractions and learn to build your own Developed with help from the community, The Rust Programming Language is your official guide to becoming a productive Rust programmer"--