Module wasmtime_environ::__core::prelude::rust_2018

1.55.0 · source ·
Expand description

The 2018 version of the core prelude.

See the module-level documentation for more.

Macros

  • concat_bytesExperimental
    Concatenates literals into a byte slice.
  • concat_identsExperimental
    Concatenates identifiers into one identifier.
  • format_args_nlExperimental
    Same as format_args, but adds a newline in the end.
  • log_syntaxExperimental
    Prints passed tokens into the standard output.
  • trace_macrosExperimental
    Enables or disables tracing functionality used for debugging other macros.
  • type_ascribeExperimental
    Unstable placeholder for type ascription.
  • Asserts that a boolean expression is true at runtime.
  • Evaluates boolean combinations of configuration flags at compile-time.
  • Expands to the column number at which it was invoked.
  • Causes compilation to fail with the given error message when encountered.
  • Concatenates literals into a static string slice.
  • Inspects an environment variable at compile time.
  • Expands to the file name in which it was invoked.
  • Constructs parameters for the other string-formatting macros.
  • Parses a file as an expression or an item according to the context.
  • Includes a file as a reference to a byte array.
  • Includes a UTF-8 encoded file as a string.
  • Expands to the line number on which it was invoked.
  • Expands to a string that represents the current module path.
  • Optionally inspects an environment variable at compile time.
  • Stringifies its arguments.

Enums

Traits

  • Used to do a cheap mutable-to-mutable reference conversion.
  • Used to do a cheap reference-to-reference conversion.
  • A common trait for the ability to explicitly duplicate an object.
  • Types whose values can be duplicated simply by copying bits.
  • A trait for giving a type a useful default value.
  • An iterator able to yield elements from both ends.
  • Custom code within the destructor.
  • Trait for equality comparisons which are equivalence relations.
  • An iterator that knows its exact length.
  • Extend a collection with the contents of an iterator.
  • The version of the call operator that takes an immutable receiver.
  • The version of the call operator that takes a mutable receiver.
  • The version of the call operator that takes a by-value receiver.
  • Used to do value-to-value conversions while consuming the input value. It is the reciprocal of Into.
  • A value-to-value conversion that consumes the input value. The opposite of From.
  • Conversion into an Iterator.
  • A trait for dealing with iterators.
  • Trait for types that form a total order.
  • Trait for equality comparisons.
  • Trait for types that form a partial order.
  • Types that can be transferred across thread boundaries.
  • Types with a constant size known at compile time.
  • Types for which it is safe to share references between threads.
  • Types that can be safely moved after being pinned.

Functions

  • Disposes of a value.

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.
  • derive_constExperimental
    Attribute macro used to apply derive macros for implementing traits in a const context.
  • test_caseExperimental
    An implementation detail of the #[test] and #[bench] macros.
  • Attribute macro used to apply derive macros.
  • Attribute macro applied to a static to register it as a global allocator.
  • Attribute macro applied to a function to turn it into a unit test.

Derive Macros

  • Derive macro generating an impl of the trait Clone.
  • Derive macro generating an impl of the trait Copy.
  • Derive macro generating an impl of the trait Debug.
  • Derive macro generating an impl of the trait Default.
  • Derive macro generating an impl of the trait Eq.
  • Derive macro generating an impl of the trait Hash.
  • Derive macro generating an impl of the trait Ord. The behavior of this macro is described in detail here.
  • Derive macro generating an impl of the trait PartialEq. The behavior of this macro is described in detail here.
  • Derive macro generating an impl of the trait PartialOrd. The behavior of this macro is described in detail here.