pub(crate) fn parse_extension_lookup<'a, T: 'a>( data: &'a [u8], parse: impl FnOnce(&'a [u8], u16) -> Option<T>, ) -> Option<T>