Skip to main content

Module const_helpers

Module const_helpers 

Source
Expand description

Holds const helpers for arrays and slices.

Functions§

fill_const
Fills the given slice with the given, copyable value.
from_be_const_u32
Converts slice with offset to a big-endian u32.
from_le_const_u64
Converts slice with offset to a little-endian u64.
subslice_const
A const variant of &slice[range].
subslice_mut_const
A const variant of &mut slice[range].