Tour of Rust Table of Contents

Basic Type Conversion

Rust requires explicitness when it comes to numeric types. One cannot use a u8 for a u32 casually without error.

Luckily Rust makes numeric type conversions very easy with the as keyword.