Module utils

Source

FunctionsΒ§

array_from_slice πŸ”’
first_byte_from_slice πŸ”’
map_try_from_slice_error πŸ”’
To be used in map_err when unpacking an integer from a slice of bytes.
slice_from_slice πŸ”’
string_from_slice πŸ”’
Helper to get a &str from a slice based on range, if it’s valid or an error otherwise