[−][src]Function resolve::idna::to_ascii
pub fn to_ascii(s: &str) -> Result<Cow<str>, Error>
Converts a label or host to its ASCII format. If the string is already ASCII,
it will be returned unmodified. If an error is encountered in encoding,
Err
will be returned.