Type Casting Operator
This lesson teaches the type casting operator in Rust.
We'll cover the following
What Is Type Casting?
Type casting is when you convert the data type of the variable to some other data type.
Type Casting in Rust
In Rust, typecasting is done using the as
keyword followed by the desired data type of the variable or value.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy