Module rust_future

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

The Future version of the prelude of The Rust Standard Library.

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_identsDeprecatedExperimental
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.

Structs§

BoxExperimental
A pointer type that uniquely owns a heap allocation of type T.
StringExperimental
A UTF-8–encoded, growable string.
VecExperimental
A contiguous growable array type, written as Vec<T>, short for ‘vector’.

Enums§

OptionExperimental
The Option type. See the module level documentation for more.
ResultExperimental
Result is a type that represents either success (Ok) or failure (Err).

Traits§

AsMutExperimental
Used to do a cheap mutable-to-mutable reference conversion.
AsRefExperimental
Used to do a cheap reference-to-reference conversion.
AsyncFnExperimental
An async-aware version of the Fn trait.
AsyncFnMutExperimental
An async-aware version of the FnMut trait.
AsyncFnOnceExperimental
An async-aware version of the FnOnce trait.
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.
DoubleEndedIteratorExperimental
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.
ToOwnedExperimental
A generalization of Clone to borrowed data.
ToStringExperimental
A trait for converting a value to a String.
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§

alloc_error_handlerExperimental
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.
define_opaqueExperimental
Provide a list of type aliases and other opaque-type-containing type definitions to an item with a body. This list will be used in that body to define opaque types’ hidden types. Can only be applied to things that have bodies.
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.