Skip to main content

check_vec_len

Function check_vec_len 

Source
pub fn check_vec_len<T>(
    items: &[T],
    max: usize,
    field: &'static str,
) -> Result<(), WireValidationError>
Expand description

Check that a Vec does not exceed the given length limit.