tox_binary_io
pub fn gen_len_limit( buf: (&mut [u8], usize), limit: usize) -> Result<(&mut [u8], usize), GenError>
Generator that ensures that length of serialized data does not exceed specified limit.