Donis Marshall has more than twenty years of experience in designing and building enterprise software with Microsoft technologies for leading companies in multiple industries. An endorsed trainer for Microsoft Global Learning Services, he has trained Microsoft developers and engineers for many years. His Microsoft Press books include
Solid Code and
Programming Microsoft Visual C#. Chapter 1: Introduction to Rust 1
Introduction 1
Features 4
Rust Terminology 6
Tools 7
Summary 8
Chapter 2: Getting Started 9
Preliminaries 9
Rust and Windows 10
Installing Rust 10
Advanced Rustup 11
Hello, World 11
Compile and Run 12
Cargo 13
Library 15
Comments 17
Published Crates 20
Main Function 21
Command-Line Arguments 22
Summary 23
Chapter 3: Variables 25
Terminology 25
Variables 26
Primitives 26
Integer Types 27
Overflow 28
Notations 29
Floating Point Types 30
Floating Point Constants 30
Infinity 31
NaN 31
Numeric Ranges 32
Casting 33
Boolean Types 34
Char 34
Pointers 35
Operators 37
Summary 40