wasmtime_environ::__core::prelude

Module rust_2024

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

The 2024 version of the core prelude.

See the module-level documentation for more.

Macros§

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

Enums§

Traits§

  • AsMutExperimental
    Used to do a cheap mutable-to-mutable reference conversion.
  • AsRefExperimental
    Used to do a cheap reference-to-reference conversion.
  • CloneExperimental
    A common trait for the ability to explicitly duplicate an object.
  • CopyExperimental
    Types whose values can be duplicated simply by copying bits.
  • DefaultExperimental
    A trait for giving a type a useful default value.
  • An iterator able to yield elements from both ends.
  • DropExperimental
    Custom code within the destructor.
  • EqExperimental
    Trait for comparisons corresponding to equivalence relations.
  • ExactSizeIteratorExperimental
    An iterator that knows its exact length.
  • ExtendExperimental
    Extend a collection with the contents of an iterator.
  • FnExperimental
    The version of the call operator that takes an immutable receiver.
  • FnMutExperimental
    The version of the call operator that takes a mutable receiver.
  • FnOnceExperimental
    The version of the call operator that takes a by-value receiver.
  • FromExperimental
    Used to do value-to-value conversions while consuming the input value. It is the reciprocal of Into.
  • FromIteratorExperimental
    Conversion from an Iterator.
  • FutureExperimental
    A future represents an asynchronous computation obtained by use of async.
  • IntoExperimental
    A value-to-value conversion that consumes the input value. The opposite of From.
  • IntoFutureExperimental
    Conversion into a Future.
  • IntoIteratorExperimental
    Conversion into an Iterator.
  • IteratorExperimental
    A trait for dealing with iterators.
  • OrdExperimental
    Trait for types that form a total order.
  • PartialEqExperimental
    Trait for comparisons using the equality operator.
  • PartialOrdExperimental
    Trait for types that form a partial order.
  • SendExperimental
    Types that can be transferred across thread boundaries.
  • SizedExperimental
    Types with a constant size known at compile time.
  • SyncExperimental
    Types for which it is safe to share references between threads.
  • TryFromExperimental
    Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of TryInto.
  • TryIntoExperimental
    An attempted conversion that consumes self, which may or may not be expensive.
  • UnpinExperimental
    Types that do not require any pinning guarantees.

Functions§

  • align_ofExperimental
    Returns the ABI-required minimum alignment of a type in bytes.
  • align_of_valExperimental
    Returns the ABI-required minimum alignment of the type of the value that val points to in bytes.
  • dropExperimental
    Disposes of a value.
  • size_ofExperimental
    Returns the size of a type in bytes.
  • size_of_valExperimental
    Returns the size of the pointed-to value in bytes.

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.

Derive Macros§

  • CloneExperimental
    Derive macro generating an impl of the trait Clone.
  • CopyExperimental
    Derive macro generating an impl of the trait Copy.
  • DebugExperimental
    Derive macro generating an impl of the trait Debug.
  • DefaultExperimental
    Derive macro generating an impl of the trait Default.
  • EqExperimental
    Derive macro generating an impl of the trait Eq.
  • HashExperimental
    Derive macro generating an impl of the trait Hash.
  • OrdExperimental
    Derive macro generating an impl of the trait Ord. The behavior of this macro is described in detail here.
  • PartialEqExperimental
    Derive macro generating an impl of the trait PartialEq. The behavior of this macro is described in detail here.
  • PartialOrdExperimental
    Derive macro generating an impl of the trait PartialOrd. The behavior of this macro is described in detail here.