pub struct Domain { /* private fields */ }
Expand description
A domain.
Implementations§
source§impl Domain
impl Domain
Label Validation
sourcepub const MAX_LABEL_LEN: usize = 63usize
pub const MAX_LABEL_LEN: usize = 63usize
The maximum length of a domain label.
sourcepub fn is_valid_label(label: &[u8], ignore_case: bool) -> bool
pub fn is_valid_label(label: &[u8], ignore_case: bool) -> bool
Checks if the domain label is valid.
sourcepub fn is_valid_label_str(label: &str, ignore_case: bool) -> bool
pub fn is_valid_label_str(label: &str, ignore_case: bool) -> bool
Checks if the domain label is valid.
source§impl Domain
impl Domain
Domain Validation
sourcepub const MAX_NAME_LEN: usize = 253usize
pub const MAX_NAME_LEN: usize = 253usize
The maximum length of a domain name.
sourcepub fn is_valid_name(name: &[u8], ignore_case: bool) -> bool
pub fn is_valid_name(name: &[u8], ignore_case: bool) -> bool
Checks if the domain name is valid.
sourcepub fn is_valid_name_str(name: &str, ignore_case: bool) -> bool
pub fn is_valid_name_str(name: &str, ignore_case: bool) -> bool
Checks if the domain name is valid.
Trait Implementations§
source§impl Ord for Domain
impl Ord for Domain
source§impl PartialEq for Domain
impl PartialEq for Domain
source§impl PartialOrd for Domain
impl PartialOrd for Domain
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Domain
impl StructuralPartialEq for Domain
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnwindSafe for Domain
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