Module devela::code

source ·
Expand description

Code reflective synthesis, extends std::{any, clone, convert, default, hint, marker, ops}.

Macros§

  • core Asserts that a boolean expression is true at runtime.
  • Asserts the approximate equality of a series of expressions within tolerance.
  • core Asserts that two expressions are equal to each other.
  • Asserts the equality of a series of expressions.
  • core Asserts that two expressions are not equal to each other.
  • core Evaluates boolean combinations of configuration flags at compile-time.
  • A for loop that is usable in const contexts.
  • devela_macros Evaluates to either a true of false literal based on the compilation predicate.
  • devela_macros Returns the first non-empty argument.
  • core Expands to the column number at which it was invoked.
  • core Expands to the file name at which it was invoked.
  • core Expands to the line number at which it was invoked.
  • core Expands to a string representing the current module path.
  • core Asserts that a boolean expression is true at runtime.
  • core Asserts that two expressions are equal to each other.
  • core Asserts that two expressions are not equal to each other.
  • Configures a feature as deprecated, in order to warn when it is enabled.
  • Defines an enum and an associated type set of its variants.
  • Defines a constant for every given identifier with a value of its index in the list.
  • devela_macros Returns the total number of identifiers in its input.
  • Counts the total number of given identifiers as a usize.
  • devela_macros Returns the numbers of both total and unique identifiers in its input.
  • devela_macros Returns the number of unique identifiers in its input.
  • A more compact inline if.
  • core Parses a file as an expression or an item according to the context.
  • core Includes a file as a reference to a byte array.
  • core Includes a UTF-8 encoded file as a string.
  • Allows to paste identifiers together.
  • skip formatting macro.

Structs§

  • core Zero-sized type used to mark things that “act like” they own a T.
  • core A marker type which does not implement Unpin.
  • core Represents a globally unique identifier for a type.

Traits§

  • core A trait to emulate dynamic typing.
  • core Used to do a cheap mutable-to-mutable reference conversion.
  • core Used to do a cheap reference-to-reference conversion.
  • core A common trait for the ability to explicitly duplicate an object.
  • A trait for giving a type a useful default value in compile-time.
  • core Types whose values can be duplicated simply by copying bits.
  • core A trait for giving a type a useful default value.
  • Extension trait providing convenience methods for T: Any.
  • core Used to do value-to-value conversions while consuming the input value.
  • core A value-to-value conversion that consumes the input value.
  • core Types that can be transferred across thread boundaries.
  • core Types with a constant size known at compile time.
  • core Types for which it is safe to share references between threads.
  • core Simple and safe type conversions that may fail in a controlled way under some circumstances
  • core An attempted conversion that consumes self, which may or may not be expensive.
  • core Types that do not require any pinning guarantees.

Functions§

  • core Hints the compiler to be maximally pessimistic about what black_box could do.
  • core The identity function.
  • core Signals the processor that it is running in a busy-wait spin-loop.
  • core Informs the compiler that the current calling site is not reachable.

Attribute Macros§

Derive Macros§

  • core Derive macro generating an impl of the trait Clone.
  • core Derive macro generating an impl of the trait Copy.
  • core Derive macro generating an impl of the trait Default.