Module ocl_core::util
[−]
[src]
Utility and debugging functions.
Stability
Printing functions may be moved/renamed/removed at any time.
Modules
colors |
ASCII Color Palette |
Functions
bytes_into⚠ |
Converts a vector of bytes into a value of arbitrary type. |
bytes_into_string |
Converts a byte Vec into a string, removing the trailing null byte if it exists. |
bytes_into_trimmed_string |
Converts a byte Vec into a string, removing the trailing null byte if it exists, then removes leading and trailing whitespace. |
bytes_into_vec⚠ |
Converts a vector of bytes into a vector of arbitrary type. |
bytes_to⚠ |
Copies a slice of bytes to a new value of arbitrary type. |
bytes_to_u32 |
Copies a byte slice to a new |
bytes_to_vec⚠ |
Copies a slice of bytes into a vector of arbitrary type. |
into_bytes⚠ |
[UNTESTED] Copies an arbitrary primitive or struct into core bytes. |
padded_len |
Pads |
print_bytes_as_hex |
Does what is says it's gonna. |
print_simple | |
print_slice |
[UNSTABLE]: MAY BE REMOVED AT ANY TIME Prints a vector to stdout. Used for debugging. |
print_val_range | |
scrambled_vec |
Returns a vector with length |
shuffle |
Shuffles the values in a vector using a single pass of Fisher-Yates with a weak (not cryptographically secure) random number generator. |
shuffled_vec |
Returns a vector with length |
vec_remove_rebuild |
Batch removes elements from a vector using a list of indices to remove. |
wrap_vals |
Wraps ( |