Enum veilid_tools::SplitUrlHost
source · pub enum SplitUrlHost {
Hostname(String),
IpAddr(IpAddr),
}
Variants§
Implementations§
source§impl SplitUrlHost
impl SplitUrlHost
Trait Implementations§
source§impl Clone for SplitUrlHost
impl Clone for SplitUrlHost
source§fn clone(&self) -> SplitUrlHost
fn clone(&self) -> SplitUrlHost
Returns a copy 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 SplitUrlHost
impl Debug for SplitUrlHost
source§impl Display for SplitUrlHost
impl Display for SplitUrlHost
source§impl FromStr for SplitUrlHost
impl FromStr for SplitUrlHost
source§impl Hash for SplitUrlHost
impl Hash for SplitUrlHost
source§impl Ord for SplitUrlHost
impl Ord for SplitUrlHost
source§fn cmp(&self, other: &SplitUrlHost) -> Ordering
fn cmp(&self, other: &SplitUrlHost) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SplitUrlHost
impl PartialEq for SplitUrlHost
source§fn eq(&self, other: &SplitUrlHost) -> bool
fn eq(&self, other: &SplitUrlHost) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SplitUrlHost
impl PartialOrd for SplitUrlHost
source§fn partial_cmp(&self, other: &SplitUrlHost) -> Option<Ordering>
fn partial_cmp(&self, other: &SplitUrlHost) -> Option<Ordering>
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 SplitUrlHost
impl StructuralPartialEq for SplitUrlHost
Auto Trait Implementations§
impl Freeze for SplitUrlHost
impl RefUnwindSafe for SplitUrlHost
impl Send for SplitUrlHost
impl Sync for SplitUrlHost
impl Unpin for SplitUrlHost
impl UnwindSafe for SplitUrlHost
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> CmpAssign for Twhere
T: Ord,
impl<T> CmpAssign for Twhere
T: Ord,
fn min_assign(&mut self, other: T)
fn max_assign(&mut self, other: T)
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more