Module std::macros[src]
Standard library macros
This modules contains a set of macros which are exported from the standard library. Each macro is available for use when linking against the standard library.
Modules
| builtin | Built-in macros to the compiler itself. |
Macros
| assert! | Ensure that a boolean expression is |
| assert_eq! | Asserts that two expressions are equal to each other, testing equality in both directions. |
| debug_assert! | Ensure that a boolean expression is |
| debug_assert_eq! | Asserts that two expressions are equal to each other, testing equality in both directions. |
| fail! | The entry point for failure of rust tasks. |
| format! | Use the syntax described in |
| local_data_key! | Declare a task-local key with a specific type. |
| print! | Equivalent to the |
| println! | Macro for printing to a task's stdout handle. |
| select! | A macro to select an event from a number of receivers. |
| try! | Helper macro for unwrapping |
| unimplemented! | A standardised placeholder for marking unfinished code. It fails with the
message |
| unreachable! | A utility macro for indicating unreachable code. It will fail if executed. This is occasionally useful to put after loops that never terminate normally, but instead directly return from a function. |
| vec! | Create a |
| write! | Use the |
| writeln! | Equivalent to the |