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

meta

The parameters inside attributes are called meta items, which are captured by meta. Attributes themselves look as follows:

  • #![foo]
  • #[foo]
  • #[foo(bar)]
  • #[foo(bar="baz")]

Meta items are the things inside the brackets. So, for each of the preceding attributes, the corresponding meta items are as follows:

  • foo
  • foo
  • foo(bar)
  • foo(bar="baz")

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