Module ez::prelude

source · []

Re-exports

pub use crate as ez;
pub use alloc;
pub use core;
pub use std;
pub use {{root}}::boolinator;
pub use {{root}}::bytes;
pub use {{root}}::clap;
pub use {{root}}::crossbeam;
pub use {{root}}::derive_more;
pub use {{root}}::dpc_pariter;
pub use {{root}}::eyre;
pub use {{root}}::indexmap;
pub use {{root}}::itertools;
pub use {{root}}::num_traits;
pub use {{root}}::parking_lot;
pub use {{root}}::rayon;
pub use {{root}}::serde;
pub use {{root}}::socket2;
pub use {{root}}::thiserror;
pub use {{root}}::tokio;
pub use {{root}}::tracing;

Modules

Attach a span to a std::future::Future.

Macros

Derive macro generating an impl of the trait Debug.

Constructs an event at the debug level.

Constructs an event at the error level.

Construct an ad-hoc error from a string.

Constructs an event at the info level.

Constructs an event at the trace level.

Constructs an event at the warn level.

Structs

A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.

A cheaply cloneable and sliceable chunk of contiguous memory.

A unique reference to a contiguous slice of memory.

A double-ended queue implemented with a growable ring buffer.

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 measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.

A synchronization primitive which can be used to run a one-time initialization. Useful for one-time initialization for globals, FFI or related functionality.

A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.

A hash set where the iteration order of the values is independent of their hash values.

A slice of a path (akin to str).

An owned, mutable path (akin to String).

A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference Counted’.

An ordered map based on a B-Tree.

An ordered set based on a B-Tree.

Enums

Traits

A generic interface for casting between machine scalars with the as operator, which admits narrowing and precision loss. Implementers of this trait AsPrimitive should behave like a primitive numeric type (e.g. a newtype around another primitive), and the intended conversion must never fail.

This trait defines a number of combinator-style methods for use with bool values.

Numbers which have upper and lower bounds

Performs addition that returns None instead of wrapping around on overflow.

Performs division that returns None instead of panicking on division by zero and instead of wrapping around on underflow and overflow.

Performs multiplication that returns None instead of wrapping around on underflow or overflow.

Performs negation that returns None if the result can’t be represented.

Performs an integral remainder that returns None instead of panicking on division by zero and instead of wrapping around on underflow and overflow.

Performs a left shift that returns None on shifts larger than the type width.

Performs a right shift that returns None on shifts larger than the type width.

Performs subtraction that returns None instead of wrapping around on underflow.

? formatting.

A data structure that can be deserialized from any data format supported by Serde.

Format trait for an empty format, {}.

Generic trait for floating point numbers

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.

A generic trait for converting a number to a value.

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.

Unary operator for retrieving the multiplicative inverse, or reciprocal, of a value.

Extension trait for std::iter::Iterator bringing parallel operations

An Iterator blanket implementation that provides extra adaptors and methods.

Fused multiply-add. Computes (self * a) + b with only one rounding error, yielding a more accurate result than an unfused multiply-add.

The fused multiply-add assignment operation.

The base trait for numeric types, covering 0 and 1 values, comparisons, basic numeric operations, and string conversion.

The trait for Num types which also implement assignment operators.

The trait for types implementing numeric assignment operators (like +=).

The trait for NumAssign types which also implement assignment operations taking the second operand by reference.

An interface for casting between machine scalars.

The trait for types implementing basic numeric operations

The trait for Num types which also implement numeric operations taking the second operand by reference.

Defines a multiplicative identity element for Self.

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.

Binary operator for raising a value to a power.

Generic trait for primitive integers.

The trait for references which implement numeric operations, taking the second operand either by value or by reference.

Saturating math operations. Deprecated, use SaturatingAdd, SaturatingSub and SaturatingMul instead.

Performs addition that saturates at the numeric bounds instead of overflowing.

Performs multiplication that saturates at the numeric bounds instead of overflowing.

Performs subtraction that saturates at the numeric bounds instead of overflowing.

A data structure that can be serialized into any data format supported by Serde.

Useful functions for signed numbers (i.e. numbers that can be negative).

A generic trait for converting a value to a number.

A trait for values which cannot be negative

Performs addition that wraps around on overflow.

Performs multiplication that wraps around on overflow.

Performs a negation that does not panic.

Performs a left shift that does not panic.

Performs a right shift that does not panic.

Performs subtraction that wraps around on overflow.

Defines an additive identity element for Self.

Functions

Computes the absolute value.

The positive difference of two numbers.

Cast from one machine scalar to another.

Raises a value to the power of exp, returning None if an overflow occurred.

A value bounded by a minimum and a maximum

A value bounded by a maximum value

A value bounded by a minimum value

Returns the multiplicative identity, 1.

Raises a value to the power of exp, using exponentiation by squaring.

Returns the sign of the number.

Returns the additive identity, 0.

Type Definitions

A mutual exclusion primitive useful for protecting shared data

A reader-writer lock

Attribute Macros

Instruments a function to create and enter a tracing span every time the function is called.

Derive Macros