Skip to content

Glossary: Rust Basics

as

Also written: type cast

A keyword that converts a value on purpose from one number type to another, such as `bags as f64`. Converting a float to an integer drops everything after the point.

Where the book teaches it