Rust Essentials Front Cover

Rust Essentials

  • Length: 169 pages
  • Edition: 1
  • Publisher:
  • Publication Date: 2015-05-29
  • ISBN-10: 1785285769
  • ISBN-13: 9781785285769
  • Sales Rank: #1868467 (See Top 100 Books)
Description

Discover how to use Rust to write fast, secure, and concurrent systems and applications

About This Book

  • Learn how to create secure and blazingly fast programs in Rust
  • Start working with Rust in a multicore and distributed environment
  • Explore the core characteristics of Rust – safety, performance, and concurrency – to build error free and robust code

Who This Book Is For

This book is intended for software developers interested in systems level and application programming, and are looking for a quick entry into using Rust and understanding the core features of the framework. It is assumed that you have a basic understanding of Java, C#, Ruby, Python or JavaScript.

In Detail

Starting by comparing Rust with other programming languages, this book will show you where and how to use Rust. It will discuss primitive types along with variables and their scope, binding and casting, simple functions, and ways to control execution flow in a program.

Next, the book covers flexible arrays, vectors, tuples, enums, and structs. You will then generalize the code with higher-order functions and generics applying it to closures, iterators, consumers, and so on. Memory safety is ensured by the compiler by using references, pointers, boxes, reference counting, and atomic reference counting. You will learn how to build macros and crates and discover concurrency for multicore execution.

By the end of this book, you will have successfully migrated to using Rust and will be able to use it as your main programming language.

Table of Contents

Chapter 1. Starting with Rust
Chapter 2. Using Variables and Types
Chapter 3. Using Functions and Control Structures
Chapter 4. Structuring Data and Matching Patterns
Chapter 5. Generalizing Code with Higher-order Functions and Parametrization
Chapter 6. Pointers and Memory Safety
Chapter 7. Organizing Code and Macros
Chapter 8. Concurrency and Parallelism
Chapter 9. Programming at the Boundaries

To access the link, solve the captcha.