[−][src]Function mail_internals::bind::idna::puny_code_domain
pub fn puny_code_domain<R: AsRef<str>>(
domain: R
) -> Result<SoftAsciiString, EncodingError>
uses puny code on given domain to return a ascii representation
Implementation Detail
this function uses idna::domain_to_ascii, see the
idna crates documentation fore more details on how
exactly all edgecase are handled
Note
that this function does not validate the domain, e.g.
if you puny code the domain "this seems\0so;wrong" it
will return Ok("this seems\0so;wrong")