Enum url::host::HostInternal
source · pub(crate) enum HostInternal {
None,
Domain,
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
}
Variants§
Trait Implementations§
source§impl Clone for HostInternal
impl Clone for HostInternal
source§fn clone(&self) -> HostInternal
fn clone(&self) -> HostInternal
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 HostInternal
impl Debug for HostInternal
source§impl<'de> Deserialize<'de> for HostInternal
impl<'de> Deserialize<'de> for HostInternal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Host> for HostInternal
impl From<Host> for HostInternal
source§impl PartialEq for HostInternal
impl PartialEq for HostInternal
source§fn eq(&self, other: &HostInternal) -> bool
fn eq(&self, other: &HostInternal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for HostInternal
impl Serialize for HostInternal
impl Copy for HostInternal
impl Eq for HostInternal
impl StructuralPartialEq for HostInternal
Auto Trait Implementations§
impl Freeze for HostInternal
impl RefUnwindSafe for HostInternal
impl Send for HostInternal
impl Sync for HostInternal
impl Unpin for HostInternal
impl UnwindSafe for HostInternal
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