pub struct DomainString(/* private fields */);Expand description
A validated DNS domain name, stored in normalized (ASCII/punycode) form. The original wire-format string (which may have been a UTF-8 U-label) is not preserved; only the IDNA-normalized A-label form is kept.
Implementations§
Trait Implementations§
Source§impl Clone for DomainString
impl Clone for DomainString
Source§fn clone(&self) -> DomainString
fn clone(&self) -> DomainString
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DomainString
impl Debug for DomainString
Source§impl Display for DomainString
impl Display for DomainString
Source§impl From<&DomainString> for Name
impl From<&DomainString> for Name
Source§fn from(val: &DomainString) -> Self
fn from(val: &DomainString) -> Self
Converts to this type from the input type.
Source§impl From<DomainString> for Name
impl From<DomainString> for Name
Source§fn from(val: DomainString) -> Self
fn from(val: DomainString) -> Self
Converts to this type from the input type.
Source§impl FromStr for DomainString
impl FromStr for DomainString
Source§impl Hash for DomainString
impl Hash for DomainString
Source§impl PartialEq for DomainString
impl PartialEq for DomainString
impl Eq for DomainString
impl StructuralPartialEq for DomainString
Auto Trait Implementations§
impl Freeze for DomainString
impl RefUnwindSafe for DomainString
impl Send for DomainString
impl Sync for DomainString
impl Unpin for DomainString
impl UnwindSafe for DomainString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.