core::prelude

Module rust_2024

Source
🔬This is a nightly-only experimental API. (prelude_2024 #121042)
Expand description

The 2024 version of the core prelude.

See the module-level documentation for more.

Re-exports§

Macros§

  • derefExperimental
    Unstable placeholder for deref patterns.
  • type_ascribeExperimental
    Unstable placeholder for type ascription.

Attribute Macros§

  • Attribute macro applied to a function to register it as a handler for allocation failure.
  • benchExperimental
    Attribute macro applied to a function to turn it into a benchmark test.
  • cfg_accessibleExperimental
    Keeps the item it’s applied to if the passed path is accessible, and removes it otherwise.
  • cfg_evalExperimental
    Expands all #[cfg] and #[cfg_attr] attributes in the code fragment it’s applied to.
  • deriveExperimental
    Attribute macro used to apply derive macros.
  • derive_constExperimental
    Attribute macro used to apply derive macros for implementing traits in a const context.
  • global_allocatorExperimental
    Attribute macro applied to a static to register it as a global allocator.
  • testExperimental
    Attribute macro applied to a function to turn it into a unit test.
  • test_caseExperimental
    An implementation detail of the #[test] and #[bench] macros.