pub fn escape_bytes_except( b: &[u8], is_except: impl Fn(u8) -> bool, ) -> Cow<'_, [u8]>
Return a byte sequence in which all bytes other than those for which is_except returns true are percent-encoded.
is_except
true