From 713ee104d3e5988af7a8e97b2aaf8a0a319b012d Mon Sep 17 00:00:00 2001 From: brson Date: Fri, 14 Sep 2012 22:01:41 -0700 Subject: [PATCH] Updated Doc attributes (markdown) --- Doc-attributes.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Doc-attributes.md b/Doc-attributes.md index 19f5f3c..4effe63 100644 --- a/Doc-attributes.md +++ b/Doc-attributes.md @@ -84,5 +84,20 @@ An example of using conditional compilation to build different methods on differ Rust includes a built-in [unit testing](Note unit testing) facility which makes use of attributes and conditional compilation. +## Yet more uses of attributes + +Attributes are all around these days. Here are even more3 + +### Specifying the ABI of foreign functions + + #[abi = "cdecl"] extern { ... } + #[abi = "stdcall"] extern { ... } + +### Inlining + + #[inline] fn foo() { } + #[inline(always)] fn bar() { } + #[inline(never)] fn baz() { } + ## Relationship with macros Please see [[Bikeshed syntax extension]] \ No newline at end of file