en
Книги
Ivo Balbaert

Rust Essentials

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.
201 печатни страници
Година на публикуване
2015
Издател
Packt Publishing
Вече чели ли сте я? Какво мислите за нея?
👍👎

Цитати

  • Евгений Корнюшенкоцитирапреди 2 години
    The infamous goto from C does not exist in Rust!
  • Евгений Корнюшенкоцитирапреди 2 години
    The heap is a much larger memory part than the stack, so it is important that memory locations are freed as soon as they are no longer needed. The Rust compiler sees when a variable ends its lifetime (or in other words, goes out of scope) and inserts a code at compile time to free its memory when the code is executed. This behavior is unique to Rust and is not present in other commonly used languages.
  • Евгений Корнюшенкоцитирапреди 2 години
    The website at https://crates.io/ is the central repository for Rust packages or crates (as they are called)

На лавиците

  • Kristina
    Learn programming
    • 119
    • 65
  • Søren Jensen
    Programming
    • 3
  • Artem Korotkov
    ARTЁM's
    • 2
fb2epub
Плъзнете и пуснете файловете си (не повече от 5 наведнъж)