O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

pat

Match expressions have patterns on the left-hand side of each match, which pat captures. Here are some examples:

  • 1
  • "x"
  • t
  • *t
  • Some(t)
  • 1 | 2 | 3
  • 1 ... 3
  • _

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required