Module serde::lib

source ·
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 Strings.
  • i8Deprecation planned
    Redundant constants module for the i8 primitive type.
  • i16Deprecation planned
    Redundant constants module for the i16 primitive type.
  • i32Deprecation planned
    Redundant constants module for the i32 primitive type.
  • i64Deprecation planned
    Redundant constants module for the i64 primitive type.
  • isizeDeprecation planned
    Redundant constants module for the isize primitive 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
    Redundant constants module for the u8 primitive type.
  • u16Deprecation planned
    Redundant constants module for the u16 primitive type.
  • u32Deprecation planned
    Redundant constants module for the u32 primitive type.
  • u64Deprecation planned
    Redundant constants module for the u64 primitive type.
  • usizeDeprecation planned
    Redundant constants module for the usize primitive type.

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.
  • 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 map based on a B-Tree.
  • 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 hash map implemented with quadratic probing and SIMD lookup.
  • A hash set implemented as a HashMap where the value is ().
  • A doubly-linked list with owned nodes.
  • A mutual exclusion primitive useful for protecting shared data
  • Borrowed reference to an OS string (see OsString).
  • A type that can represent owned, mutable platform-native strings, but is cheaply inter-convertible with Rust strings.
  • A slice of a path (akin to str).
  • An owned, mutable path (akin to String).
  • 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 only bounded inclusively below (start..).
  • A range bounded inclusively below and above (start..=end).
  • A range only bounded exclusively above (..end).
  • 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 mutable memory location with dynamically checked borrow rules
  • A helper struct for reverse ordering.
  • A reader-writer lock
  • Provides intentionally-saturating arithmetic on T.
  • 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.
  • 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.
  • ? formatting.
  • Format trait for an empty format, {}.
  • A trait for writing or formatting into Unicode-accepting buffers or streams.
  • 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.

Derive Macros

  • Derive macro generating an impl of the trait Debug.
  • Derive macro generating an impl of the trait Hash.