Module vrp_core::utils[][src]

A collection of various utility helpers.

Structs

DefaultRandom

A default random implementation.

Environment

Keeps track of environment specific information which influences algorithm behavior.

Noise

Provides way to generate some noise to floating point value.

Parallelism

Specifies data parallelism settings.

ThreadPool

Represents a thread pool wrapper.

TimeQuota

A time quota.

Enums

Either

Represents a type with two values.

Traits

CollectGroupBy

An iterator which collects items into group.

Random

Provides the way to use randomized values in generic way.

Functions

as_mut

Safety

compare_floats

Compares floats.

compare_shared

Compares pointers from shared objects.

map_reduce

Performs map reduce operations in parallel.

parallel_collect

Maps collection and collects results into vector in parallel.

parallel_into_collect

Maps collection and collects results into vector in parallel.

unwrap_from_result

Unwraps result type.

Type Definitions

Timer

Implements performance timer functionality, mostly exists due to problem with Instant on wasm32 arch.