wiwi

Module prelude_std

Source
Expand description

Prelude exporting types from the Rust standard library (std)

Re-exports§

  • pub extern crate alloc as alloc_crate;
  • pub extern crate core;
  • pub extern crate std;
  • pub use std::option::Option::Some;
  • pub use std::option::Option::None;
  • pub use std::result::Result::Ok;
  • pub use std::result::Result::Err;

Modules§

  • Memory allocation APIs.
  • Utilities for the array primitive type.
  • Atomic types
  • Shareable mutable containers.
  • The Clone trait for types that cannot be ‘implicitly copied’.
  • Utilities for comparing and ordering values.
  • Inspection and manipulation of the process’s environment.
  • Utilities for formatting and printing Strings.
  • Asynchronous basic functionality.
  • Generic hashing support.
  • Hints to compiler that affects how code should be emitted or optimized.
  • Composable external iteration.
  • Primitive traits and types representing basic properties of types.
  • Basic functions for dealing with memory.
  • Overloadable operators.
  • Optional values.
  • Panic support in the standard library.
  • Manually manage memory through raw pointers.
  • Error handling with the Result type.
  • Utilities for the slice primitive type.
  • Utilities for the str primitive type.
  • A UTF-8–encoded, growable string.
  • A contiguous growable array type with heap-allocated contents, written Vec<T>.

Macros§

  • Asserts that a boolean expression is true at runtime.
  • Asserts that two expressions are equal to each other (using PartialEq).
  • Asserts that two expressions are not equal to each other (using PartialEq).
  • 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.
  • Prints and returns the value of a given expression for quick and dirty debugging.
  • Asserts that a boolean expression is true at runtime.
  • Asserts that two expressions are equal to each other.
  • Asserts that two expressions are not equal to each other.
  • Inspects an environment variable at compile time.
  • Prints to the standard error.
  • Prints to the standard error, with a newline.
  • Expands to the file name in which it was invoked.
  • Creates a String using interpolation of runtime expressions.
  • Constructs parameters for the other string-formatting macros.
  • Expands to the line number on which it was invoked.
  • Panics the current thread.
  • Prints to the standard output.
  • Prints to the standard output, with a newline.
  • Stringifies its arguments.
  • Indicates unfinished code.
  • Indicates unreachable code.
  • Creates a Vec containing the arguments.

Structs§

  • A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
  • Weak is a version of Arc that holds a non-owning reference to the managed allocation. The allocation is accessed by calling upgrade on the Weak pointer, which returns an Option<Arc<T>>.
  • A boolean type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • A raw pointer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • An integer type which can be safely shared between threads.
  • A pointer type that uniquely owns a heap allocation of type T.
  • A wrapper to inhibit the compiler from automatically calling T’s destructor. This wrapper is 0-cost.
  • Zero-sized type used to mark things that “act like” they own a T.
  • A marker type which does not implement Unpin.
  • A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference Counted’.
  • Weak is a version of Rc that holds a non-owning reference to the managed allocation. The allocation is accessed by calling upgrade on the Weak pointer, which returns an Option<Rc<T>>.
  • A UTF-8–encoded, growable string.
  • A TypeId represents a globally unique identifier for a type.
  • The core primitive for interior mutability in Rust.
  • A contiguous growable array type, written as Vec<T>, short for ‘vector’.

Enums§

Traits§

  • A trait to emulate dynamic typing.
  • Used to do a cheap mutable-to-mutable reference conversion.
  • Used to do a cheap reference-to-reference conversion.
  • A trait for borrowing data.
  • A trait for mutably borrowing data.
  • A common trait for the ability to explicitly duplicate an object.
  • Types whose values can be duplicated simply by copying bits.
  • ? formatting.
  • A trait for giving a type a useful default value.
  • Used for immutable dereferencing operations, like *v.
  • Used for mutable dereferencing operations, like in *v = 1;.
  • Format trait for an empty format, {}.
  • An iterator able to yield elements from both ends.
  • Custom code within the destructor.
  • Trait for comparisons corresponding to 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.
  • Conversion from an Iterator.
  • A future represents an asynchronous computation obtained by use of async.
  • A hashable type.
  • A trait for hashing an arbitrary stream of bytes.
  • A value-to-value conversion that consumes the input value. The opposite of From.
  • Conversion into a Future.
  • Conversion into an Iterator.
  • A trait for dealing with iterators.
  • Trait for types that form a total order.
  • Trait for comparisons using the equality operator.
  • Trait for types that form a partial order.
  • A marker trait representing types where a shared reference is considered unwind safe.
  • 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.
  • A generalization of Clone to borrowed data.
  • A trait for converting a value to a String.
  • Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of TryInto.
  • An attempted conversion that consumes self, which may or may not be expensive.
  • Types that do not require any pinning guarantees.
  • A marker trait which represents “panic safe” types in Rust.

Functions§

  • Returns the ABI-required minimum alignment of a type in bytes.
  • Returns the ABI-required minimum alignment of the type of the value that val points to in bytes.
  • Allocates memory with the global allocator.
  • Allocates zero-initialized memory with the global allocator.
  • A “compiler-only” atomic fence.
  • Deallocates memory with the global allocator.
  • Disposes of a value.
  • An atomic fence.
  • Takes ownership and “forgets” about the value without running its destructor.
  • The identity function.
  • Returns true if dropping values of type T matters.
  • Reallocates memory with the global allocator.
  • Moves src into the referenced dest, returning the previous dest value.
  • Returns the size of a type in bytes.
  • Returns the size of the pointed-to value in bytes.
  • Swaps the values at two mutable locations, without deinitializing either one.
  • Replaces dest with the default value of T, returning the previous dest value.
  • Reinterprets the bits of a value of one type as another type.
  • Interprets src as having type &Dst, and then reads src without moving the contained value.
  • Returns the name of a type as a string slice.
  • Returns the type name of the pointed-to value as a string slice.
  • Returns the value of type T represented by the all-zero byte-pattern.

Unions§

  • A wrapper type to construct uninitialized instances of T.

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.