Expand description
A facade around all the types we need from the std
, core
, and alloc
crates. This avoids elaborate import wrangling having to happen in every
module.
Modules
The
Clone
trait for types that cannot be ‘implicitly copied’.Utilities for comparing and ordering values.
Traits for conversions between types.
core 🔒
The
Default
trait for types with a default value.Interfaces for working with Errors.
Constants for the
f32
single-precision floating point type.Constants for the
f64
double-precision floating point type.Utilities for formatting and printing
String
s.i8Deprecation planned
Constants for the 8-bit signed integer type.
i16Deprecation planned
Constants for the 16-bit signed integer type.
i32Deprecation planned
Constants for the 32-bit signed integer type.
i64Deprecation planned
Constants for the 64-bit signed integer type.
isizeDeprecation planned
Constants for the pointer-sized signed integer type.
Composable external iteration.
Primitive traits and types representing basic properties of types.
Basic functions for dealing with memory.
Networking primitives for TCP/UDP communication.
Additional functionality for numerics.
Optional values.
Manually manage memory through raw pointers.
Error handling with the
Result
type.Utilities for the slice primitive type.
Utilities for the
str
primitive type.u8Deprecation planned
Constants for the 8-bit unsigned integer type.
u16Deprecation planned
Constants for the 16-bit unsigned integer type.
u32Deprecation planned
Constants for the 32-bit unsigned integer type.
u64Deprecation planned
Constants for the 64-bit unsigned integer type.
usizeDeprecation planned
Constants for the pointer-sized unsigned integer type.
Macros
Derive macro generating an impl of the trait
Clone
.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
Hash
.Structs
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically
Reference Counted’.
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.
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.
An ordered set based on a B-Tree.
A priority queue implemented with a binary heap.
A pointer type that uniquely owns a heap allocation of type
T
.Representation of a borrowed C string.
A type representing an owned, C-compatible, nul-terminated string with no nul bytes in the
middle.
A mutable memory location.
A
Duration
type to represent a span of time, typically used for system
timeouts.A doubly-linked list with owned nodes.
A mutual exclusion primitive useful for protecting shared data
A type that can represent owned, mutable platform-native strings, but is
cheaply inter-convertible with Rust strings.
Zero-sized type used to mark things that “act like” they own a
T
.A (half-open) range bounded inclusively below and exclusively above
(
start..end
).A range bounded inclusively below and above (
start..=end
).A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference
Counted’.
A mutable memory location with dynamically checked borrow rules
A helper struct for reverse ordering.
A reader-writer lock
A UTF-8–encoded, growable string.
A measurement of the system clock, useful for talking to
external entities like the file system or other processes.
A contiguous growable array type, written as
Vec<T>
, short for ‘vector’.A double-ended queue implemented with a growable ring buffer.
Provides intentionally-wrapped arithmetic on
T
.Enums
An endpoint of a range of keys.
A clone-on-write smart pointer.
The
Option
type. See the module level documentation for more.Atomic memory orderings
Constants
An anchor in time which can be used to create new
SystemTime
instances or
learn about where in time a SystemTime
lies.Traits
A trait for creating instances of
Hasher
.A common trait for the ability to explicitly duplicate an object.
?
formatting.A trait for giving a type a useful default value.
Format trait for an empty format,
{}
.Used to do value-to-value conversions while consuming the input value. It is the reciprocal of
Into
.A hashable type.
A generalization of
Clone
to borrowed data.A trait for converting a value to a
String
.A trait for objects which are byte-oriented sinks.