pub fn encode<'a, S: ?Sized + AsRef<str>>( text: &'a S, ascii_set: &'static AsciiSet, ) -> Cow<'a, str>
Encode text.