Expand description
Macros§
- CONST
- A helper for constructing macro constants.
- assert
core
Asserts that a boolean expression is true at runtime.- assert_
approx_ eq_ all - Asserts the approximate equality of a series of expressions within
tolerance
. - assert_
eq core
Asserts that two expressions are equal to each other.- assert_
eq_ all - Asserts the equality of a series of expressions.
- assert_
ne core
Asserts that two expressions are not equal to each other.- capture_
first - Captures the first token from a list of inputs.
- capture_
last - Captures the last token from a list of inputs.
- capture_
tail_ tuple - Captures all the tokens except the first one, as a tuple.
- cdbg
std
c
ustomizabledbg!
macro.- cfg
core
Evaluates boolean combinations of configuration flags at compile-time.- cfg_if
- A macro for defining
#[cfg]
if-else statements. - cfor
- A for loop that is usable in compile-time contexts.
- cif
devela_macros
Evaluates to either atrue
offalse
literal based on the predicate.- coalesce
devela_macros
Returns the first non-empty argument.- code_
column core
Expands to the column number at which it was invoked.- code_
file core
Expands to the file name at which it was invoked.- code_
line core
Expands to the line number at which it was invoked.- code_
module core
Expands to a string representing the current module path.- concat
core
Concatenates literals into a static string slice.- const_
assert - Asserts various comparisons on constants.
- debug_
assert core
Asserts that a boolean expression is true at runtime.- debug_
assert_ eq core
Asserts that two expressions are equal to each other.- debug_
assert_ ne core
Asserts that two expressions are not equal to each other.- deprecate_
feature - Configures a feature as deprecated, warning if it is enabled.
- enumint
devela_macros
Generates a unit-only enum with variants associated to a specified range.- enumset
_bit_·
- Defines an enum and an associated type set of its variants.
- field_
of devela_macros
Generates an expression for accessing a field of a tuple or struct.- ident_
const_ index - Defines a constant for every given identifier with a value of its index in the list.
- ident_
total devela_macros
Returns the total number of identifiers in its input.- ident_
total_ unique devela_macros
Returns the numbers of both total and unique identifiers in its input.- ident_
unique devela_macros
Returns the number of unique identifiers in its input.- iif
i
nlineif
macro.- impl_
trait - A helper macro to concisely implement a few common utility traits.
- include
core
Parses a file as an expression or an item according to the context.- include_
bytes core
Includes a file as a reference to a byte array.- include_
from - Includes a Rust source file relative to the project’s directory.
- include_
str core
Includes a UTF-8 encoded file as a string.- items
- Groups items together and expands them as if they were written directly.
- maybe
- Helper for using optionally implemented traits, like
Default
orClone
. - mod_
from - Declares a module by including a Rust source file relative to the project’s directory.
- paste
paste
Allows to paste identifiers together.- sf
s
kipf
ormatting wrapper macro.- stringify
core
Stringifies its arguments.- unroll
_unroll
- Unrolls the given for loop.
Functions§
- assert_
unchecked ⚠ core
Makes a soundness promise to the compiler that thecond
ition holds.- black_
box core
Hints the compiler to be maximally pessimistic about what black_box could do.- spin_
loop core
Signals the processor that it is running in a busy-wait spin-loop.- unreachable_
unchecked ⚠ core
Informs the compiler that the current calling site is not reachable.
Attribute Macros§
- compile
devela_macros
Conditionally compiles the thing it is attached to based on the predicate.- compile_
attr devela_macros
Conditionally compiles the given attributes based on the predicate.- autodiff
Experimental nightly_autodiff
core
Automatic Differentiation macro.