Skip to main content

escape_bytes_except

Function escape_bytes_except 

Source
pub fn escape_bytes_except(
    b: &[u8],
    is_except: impl Fn(u8) -> bool,
) -> Cow<'_, [u8]>
Expand description

Return a byte sequence in which all bytes other than those for which is_except returns true are percent-encoded.