pub fn idna_to_ascii(input: &str, adl: &str, h: &str, dl: &str) -> StringExpand description
Encodes input as ASCII Punycode.
§Panics
This function will panic under any of the following conditions:
inputis not well-formed UTF-8.AsciiDenyList,Hyphens, orDnsLengthare invalid.- The
AsciiDenyList,Hyphens, orDnsLengthconstraints are violated.
§Defaults
- If unspecified, the default
AsciiDenyListisURL. - If unspecified, the default
HyphensisAllow. - If unspecified, the default
DnsLengthisVerify.
For more information, see Uts46::to_ascii.