Function regex_automata::util::wire::check_slice_len
source · pub(crate) fn check_slice_len<T>(
slice: &[T],
at_least_len: usize,
what: &'static str,
) -> Result<(), DeserializeError>
Expand description
Checks that the given slice has some minimal length. If it’s smaller than
the bound given, then a “buffer too small” error is returned with what
describing what the buffer represents.