Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

  • Book
  • © 2018

Beginning Rust

From Novice to Professional

Apress

Authors:

(view affiliations)
  • Covers programming with Rust on Unix, Linux, macOS, and Windows

  • Master heterogeneous data structures and data sequences

  • Utilize closures, changeable strings, ranges and slices

Buying options

eBook
USD 39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-3468-6
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout

This is a preview of subscription content, access via your institution.

Table of contents (23 chapters)

  1. Front Matter

    Pages i-xvii
  2. Printing on the Terminal

    • Carlo Milanesi
    Pages 1-8
  3. Doing Arithmetic

    • Carlo Milanesi
    Pages 9-15
  4. Naming Objects

    • Carlo Milanesi
    Pages 17-32
  5. Controlling Execution Flow

    • Carlo Milanesi
    Pages 33-45
  6. Using Data Sequences

    • Carlo Milanesi
    Pages 47-60
  7. Using Primitive Types

    • Carlo Milanesi
    Pages 61-82
  8. Enumerating Cases

    • Carlo Milanesi
    Pages 83-95
  9. Using Heterogeneous Data Structures

    • Carlo Milanesi
    Pages 97-104
  10. Defining Functions

    • Carlo Milanesi
    Pages 105-120
  11. Defining Generic Functions and Structs

    • Carlo Milanesi
    Pages 121-134
  12. Allocating Memory

    • Carlo Milanesi
    Pages 135-154
  13. Data Implementation

    • Carlo Milanesi
    Pages 155-164
  14. Defining Closures

    • Carlo Milanesi
    Pages 165-171
  15. Using Changeable Strings

    • Carlo Milanesi
    Pages 173-182
  16. Ranges and Slices

    • Carlo Milanesi
    Pages 183-195
  17. Using Iterators

    • Carlo Milanesi
    Pages 197-221
  18. Input/Output and Error Handling

    • Carlo Milanesi
    Pages 223-237
  19. Using Traits

    • Carlo Milanesi
    Pages 239-271
  20. Object-Oriented Programming

    • Carlo Milanesi
    Pages 273-294

About this book

Learn to program with Rust in an easy, step-by-step manner on Unix, Linux shell, macOS and the Windows command line.  As you read this book, you’ll build on the knowledge you gained in previous chapters and see what Rust has to offer.  

Beginning Rust starts with the basics of Rust, including how to name objects, control execution flow, and handle primitive types. You’ll see how to do arithmetic, allocate memory, use iterators, and handle input/output. Once you have mastered these core skills, you’ll work on handling errors and using the object-oriented features of Rust to build robust Rust applications in no time.

Only a basic knowledge of programming is required, preferably in C or C++. To understand this book, it's enough to know what integers and floating-point numbers are, and to distinguish identifiers from string literals.

After reading this book, you'll be ready to build Rust applications.  

You will:
  • Get started programming with Rust
  • Understand heterogeneous data structures and data sequences
  • Define functions, generic functions, structs, and more
  • Work with closures, changeable strings, ranges and slices
  • Use traits and learn about lifetimes  

Keywords

  • Rust
  • beginning
  • programming
  • beginner
  • learn
  • code
  • language
  • source
  • open source
  • step by step
  • tutorial
  • C++
  • C
  • memory
  • performance

Authors and Affiliations

  • Bergamo, Italy

    Carlo Milanesi

About the author

Carlo Milanesi is a professional software developer and expert who uses Rust.  He has contributed to the Rust development community, and also  has done web application development in Linux with PHP, JavaScript, Java, Ionic and Vaadin frameworks.  Lastly, he has been in involved in these other technologies: GUI design, 2D and 3D rendering, testing automation, database access.  Carlo's applications include CAM/CAM for the stone machining industry, lens cutting laboratory automation, and corporate-wide web applications.

Bibliographic Information

Buying options

eBook
USD 39.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-3468-6
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout