[][src]Module vrp_core::utils

A collection of various utility helpers.

Structs

DefaultRandom

A default random implementation.

Noise

Provides way to generate some noise to floating point value.

TimeQuota

A time quota.

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.

get_cpus

Returns amount of CPUs.

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.