[][src]Module vrp_core::utils

Utility helpers.

Structs

DefaultRandom
VariationCoefficient

Uses coefficient of variation as termination criteria.

Traits

CollectGroupBy

An iterator which collects items into group.

Random

Provides the way to use randomized values in generic way.

TryCollect

A trait to get tuple from collection items. See https://stackoverflow.com/questions/38863781/how-to-create-a-tuple-from-a-vector

Functions

as_mut

Safety

compare_floats

Compares floats.

compare_shared

Compares pointers from shared objects.

get_cv

Returns coefficient variation.

get_mean

Gets mean of values.

get_stdev

Returns standard deviation.

map_reduce

Performs map reduce operations in parallel.

parallel_collect

Maps collection and collects results into vector in parallel.

Type Definitions

Timer

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