Function idna::uts46::verify_dns_length

source ·
pub fn verify_dns_length(domain_name: &str, allow_trailing_dot: bool) -> bool
Expand description

Performs the VerifyDNSLength check on the output of the ToASCII operation.

If the second argument is false, the trailing root label dot is allowed.

§Panics

Panics in debug mode if the argument isn’t ASCII.