Expand description
Utility and debugging functions.
§Stability
Printing functions may be moved/renamed/removed at any time.
Modules§
- colors
- ASCII Color Palette
Enums§
- Util
Error - An error caused by a utility function.
- VecRemove
Rebuild Error - An error caused by
util::vec_remove_rebuild.
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_ ⚠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
u32. - 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
lento make it evenly divisible byincr. - print_
bytes_ as_ hex - Prints bytes as hex.
- print_
simple - print_
slice - [UNSTABLE]: MAY BE REMOVED AT ANY TIME Prints a vector to stdout. Used for debugging.
- print_
val_ range - vec_
remove_ rebuild - Batch removes elements from a vector using a list of indices to remove.
- wrap_
vals - Wraps (
%) each value in the listvalsif it equals or exceedsval_n.