A

Admin • 831.35K Points
Coach

Q. What does the `as` keyword do in Rust?

  • (A) Checks types
  • (B) Performs safe type casting
  • (C) Declares a variable
  • (D) Implements traits
  • Correct Answer - Option(B)
  • Views: 19
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`as` is used for type casting in Rust.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.