Expand description
Vecs searching, indexing, ranking, sorting, merging, reversing, intersecting, printing, etc.
Modules§
- Implementation of trait Indices for
&[usize]
- Implementation of trait Mutops for
&mut[T]
- Utilities for serializing, writing and printing (optionally in colours) generic vectors.
- Implementation of trait Search for Range
- Implementation of trait Vecops for
&[T]
Macros§
- Macro
here!("message")
gives&str
with thefile:line path::function-name
of where it was invoked, followed by the passed “message” - useful for informative errors
Structs§
- struct for minimum value, its index, maximum value, its index
Traits§
- Methods to manipulate and apply indices of
Vec<usize>
type. - Mutable Operators on
&mut[T]
- 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. - Binary search algoritms implemented on RangeInclusive
. Using a closure cmpr
to sample and compare data to captured target. - Methods to manipulate generic Vecs and slices of type
&[T]
Functions§
- function to sort f64s