E-Book, Englisch, 184 Seiten
Balbaert Rust Essentials
1. Auflage 2015
ISBN: 978-1-78528-213-3
Verlag: Packt Publishing
Format: PDF
Kopierschutz: Adobe DRM (»Systemvoraussetzungen)
E-Book, Englisch, 184 Seiten
ISBN: 978-1-78528-213-3
Verlag: Packt Publishing
Format: PDF
Kopierschutz: Adobe DRM (»Systemvoraussetzungen)
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.




