Function resolve::idna::to_unicode [] [src]

pub fn to_unicode(s: &str) -> Result<Cow<str>, Error>

Converts a label or host to its Unicode format. If the string is not an internationalized domain name, it will be returned unmodified. If an error is encountered in decoding, Err will be returned.