Module common

Source

Modules§

de
Generic data structure deserialization framework.
ser
Generic data structure serialization framework.

Macros§

anyhow
Construct an ad-hoc error from a string or existing non-anyhow error value.
bail
Return early with an error.
debug
Logs a message at the debug level.
ensure
Return early with an error if a condition is not satisfied.
error
Logs a message at the error level.
format_err
Construct an ad-hoc error from a string or existing non-anyhow error value.
forward_to_deserialize_any
Helper macro when implementing the Deserializer part of a new data format for Serde.
info
Logs a message at the info level.
log_dbg
Similar to std::dbg! macro, but print with info! instead of eprintln!
trace
Logs a message at the trace level.
warn
Logs a message at the warn level.

Structs§

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

Traits§

Configure
Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Deserializer
A data format that can deserialize any data structure supported by Serde.
FloatIteratorExt
FmtWrite
A trait for writing or formatting into Unicode-accepting buffers or streams.
FromParallelIterator
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.
FromStr
Parse a value from a string
IndexedParallelIterator
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
IntoParallelIterator implements the conversion to a ParallelIterator.
IntoParallelRefIterator
IntoParallelRefIterator implements the conversion to a ParallelIterator, providing shared references to the data.
IntoParallelRefMutIterator
IntoParallelRefMutIterator implements the conversion to a ParallelIterator, providing mutable references to the data.
Itertools
An Iterator blanket implementation that provides extra adaptors and methods.
ParallelBridge
Conversion trait to convert an Iterator to a ParallelIterator.
ParallelDrainFull
ParallelDrainFull creates a parallel iterator that moves all items from a collection while retaining the original capacity.
ParallelDrainRange
ParallelDrainRange creates a parallel iterator that moves a range of items from a collection while retaining the original capacity.
ParallelExtend
ParallelExtend extends an existing collection with items from a ParallelIterator.
ParallelIterator
Parallel version of the standard iterator trait.
ParallelSlice
Parallel extensions for slices.
ParallelSliceMut
Parallel extensions for mutable slices.
ParallelString
Parallel extensions for strings.
Read
The Read trait allows for reading bytes from a source.
Serialize
A data structure that can be serialized into any data format supported by Serde.
Serializer
A data format that can serialize any data structure supported by Serde.
ShellEscapeExt
ShellEscapeLossyExt
Write
A trait for objects which are byte-oriented sinks.
_Context
Provides the context method for Result.

Functions§

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

Type Aliases§

Result
Result<T, Error>

Derive Macros§

Deserialize
Serialize