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§
- clone
- The
Clone
trait for types that cannot be ‘implicitly copied’. - convert
- Traits for conversions between types.
- core 🔒
- default
- The
Default
trait for types with a default value. - f32
- Constants for the
f32
single-precision floating point type. - f64
- Constants for the
f64
double-precision floating point type. - fmt
- Utilities for formatting and printing
String
s. - marker
- Primitive traits and types representing basic properties of types.
- option
- Optional values.
- ptr
- Manually manage memory through raw pointers.
- result
- Error handling with the
Result
type. - slice
- Utilities for the slice primitive type.
- str
- Utilities for the
str
primitive type.
Structs§
- Box
- A pointer type that uniquely owns a heap allocation of type
T
. - Phantom
Data - Zero-sized type used to mark things that “act like” they own a
T
. - String
- A UTF-8–encoded, growable string.
- Vec
- A contiguous growable array type, written as
Vec<T>
, short for ‘vector’.
Enums§
- Cow
- A clone-on-write smart pointer.
Traits§
- Debug
?
formatting.- Display
- Format trait for an empty format,
{}
. - FmtWrite
- A trait for writing or formatting into Unicode-accepting buffers or streams.
- ToOwned
- A generalization of
Clone
to borrowed data. - ToString
- A trait for converting a value to a
String
.
Derive Macros§
- Debug
- Derive macro generating an impl of the trait
Debug
.