Module gchemol_gut::prelude
source · Re-exports
pub use crate::config::Configure;
pub use crate::fs::ShellEscapeExt;
pub use crate::fs::ShellEscapeLossyExt;
Macros
Construct an ad-hoc error from a string or existing non-
anyhow
error
value.Return early with an error.
Construct an ad-hoc error from a string or existing non-
anyhow
error
value.Similar to std::dbg! macro, but print with info! instead of eprintln!
Structs
The
Error
type, a wrapper around a dynamic error type.Traits
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.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 trait for objects which are byte-oriented sinks.
Provides the
context
method for Result
.Functions
Equivalent to Ok::<_, anyhow::Error>(value).
Type Definitions
Result<T, Error>