Crate indxvec

Source
Expand description

Vecs searching, indexing, ranking, sorting, merging, reversing, intersecting, printing, etc.

Modules§

indices
Implementation of trait Indices for &[usize]
mutops
Implementation of trait Mutops for &mut[T]
printing
Utilities for serializing, writing and printing (optionally in colours) generic vectors.
search
Implementation of trait Search for Range
vecops
Implementation of trait Vecops for &[T]

Macros§

here
Macro here!("message") gives &str with the file:line path::function-name of where it was invoked, followed by the passed “message” - useful for informative errors

Structs§

MinMax
struct for minimum value, its index, maximum value, its index

Traits§

Indices
Methods to manipulate and apply indices of Vec<usize> type.
Mutops
Mutable Operators on &mut[T]
Printing
Trait to serialize tuples &(T,T) and &(T,T,T) and slices &[T], &[&[T]], &[Vec<T>]. Suitable for printing or writing to files pairs, triplets, all kinds of Vecs and slices and irregularly shaped 2D matrices.
All are converted into Strings and optionally decorated and coloured. Included are methods and constants to render the resulting String in six primary bold ANSI terminal colours.
Search
Binary search algoritms implemented on RangeInclusive. Using a closure cmpr to sample and compare data to captured target.
Vecops
Methods to manipulate generic Vecs and slices of type &[T]

Functions§

qsortf64
function to sort f64s