Function resolve::idna::host_to_ascii
[−]
[src]
pub fn host_to_ascii(s: &str) -> Result<Cow<str>, Error>
Converts a hostname to its ASCII representation. Returns an error if the encoding operation failed.