Values
Allocates an array of all values.
Module: Std::HashMap
Signature
rux
func Values(self) -> **opaque;Returns
**opaque — a newly allocated array of the map's Len value pointers, or null if the map is empty. The order is unspecified.
Description
Collects every value pointer into a fresh array. The array is heap-allocated and owned by the caller — release it with Free when done. Pairs positionally with Keys as long as the map is not modified between the two calls.
Example
rux
import Std::HashMap::*;
let values = map.Values();
if values != null {
// *(values + i) is the i-th value pointer
}See also
Std::HashMap— the typeKeys— the matching keysLen— number of entries