pub struct Config { /* private fields */ }
Implementations
sourceimpl Config
impl Config
pub fn use_std3_ascii_rules(self, value: bool) -> Self
pub fn transitional_processing(self, value: bool) -> Self
pub fn verify_dns_length(self, value: bool) -> Self
pub fn check_hyphens(self, value: bool) -> Self
pub fn use_idna_2008_rules(self, value: bool) -> Self
sourcepub fn to_ascii(self, domain: &str) -> Result<String, Errors>
pub fn to_ascii(self, domain: &str) -> Result<String, Errors>
http://www.unicode.org/reports/tr46/#ToASCII
sourcepub fn to_unicode(self, domain: &str) -> (String, Result<(), Errors>)
pub fn to_unicode(self, domain: &str) -> (String, Result<(), Errors>)
http://www.unicode.org/reports/tr46/#ToUnicode
Trait Implementations
impl Copy for Config
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more