Module spdkit::common

source ·

Modules

Generic data structure deserialization framework.
Generic data structure serialization framework.

Macros

Construct an ad-hoc error from a string or existing non-anyhow error value.
Return early with an error.
Logs a message at the debug level.
Logs a message at the error level.
Construct an ad-hoc error from a string or existing non-anyhow error value.
Helper macro when implementing the Deserializer part of a new data format for Serde.
Logs a message at the info level.
Similar to std::dbg! macro, but print with info! instead of eprintln!
Conditional compilation depending on whether Serde is built with support for 128-bit integers.
Logs a message at the trace level.
Logs a message at the warn level.

Structs

The Error type, a wrapper around a dynamic error type.

Traits

A data structure that can be deserialized from any data format supported by Serde.
A data format that can deserialize any data structure supported by Serde.
A trait for writing or formatting into Unicode-accepting buffers or streams.
FromParallelIterator implements the creation of a collection from a ParallelIterator. By implementing FromParallelIterator for a given type, you define how it will be created from an iterator.
Parse a value from a string
An iterator that supports “random access” to its data, meaning that you can split it at arbitrary indices and draw data from those points.
IntoParallelIterator implements the conversion to a ParallelIterator.
IntoParallelRefIterator implements the conversion to a ParallelIterator, providing shared references to the data.
IntoParallelRefMutIterator implements the conversion to a ParallelIterator, providing mutable references to the data.
An Iterator blanket implementation that provides extra adaptors and methods.
Conversion trait to convert an Iterator to a ParallelIterator.
ParallelDrainFull creates a parallel iterator that moves all items from a collection while retaining the original capacity.
ParallelDrainRange creates a parallel iterator that moves a range of items from a collection while retaining the original capacity.
ParallelExtend extends an existing collection with items from a ParallelIterator.
Parallel version of the standard iterator trait.
Parallel extensions for slices.
Parallel extensions for mutable slices.
Parallel extensions for strings.
The Read trait allows for reading bytes from a source.
A data structure that can be serialized into any data format supported by Serde.
A data format that can serialize any data structure supported by Serde.
A trait for objects which are byte-oriented sinks.
Provides the context method for Result.

Functions

Equivalent to Ok::<_, anyhow::Error>(value).
For sort values in maximum first order.
For sort values in minimum first order.

Type Definitions

Result<T, Error>

Derive Macros