Struct idna::Config [−][src]
pub struct Config { /* fields omitted */ }
Implementations
impl Config
[src]
impl Config
[src]pub fn use_std3_ascii_rules(self, value: bool) -> Self
[src]
pub fn transitional_processing(self, value: bool) -> Self
[src]
pub fn verify_dns_length(self, value: bool) -> Self
[src]
pub fn check_hyphens(self, value: bool) -> Self
[src]
pub fn use_idna_2008_rules(self, value: bool) -> Self
[src]
pub fn to_ascii(self, domain: &str) -> Result<String, Errors>
[src]
http://www.unicode.org/reports/tr46/#ToASCII
pub fn to_unicode(self, domain: &str) -> (String, Result<(), Errors>)
[src]
http://www.unicode.org/reports/tr46/#ToUnicode