Struct publicsuffix::Suffix
source · [−]pub struct Suffix<'a> { /* private fields */ }
Expand description
The suffix of a domain name
Implementations
sourceimpl<'a> Suffix<'a>
impl<'a> Suffix<'a>
Trait Implementations
sourceimpl<'_> Ord for Suffix<'_>
impl<'_> Ord for Suffix<'_>
sourceimpl<'_> PartialOrd<Suffix<'_>> for Suffix<'_>
impl<'_> PartialOrd<Suffix<'_>> for Suffix<'_>
sourcepub fn partial_cmp(&self, other: &Suffix<'_>) -> Option<Ordering>
pub fn partial_cmp(&self, other: &Suffix<'_>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<'a> Copy for Suffix<'a>
impl<'a> Eq for Suffix<'a>
impl<'a> StructuralEq for Suffix<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Suffix<'a>
impl<'a> Send for Suffix<'a>
impl<'a> Sync for Suffix<'a>
impl<'a> Unpin for Suffix<'a>
impl<'a> UnwindSafe for Suffix<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more