Enum rdftk_iri::HostKind [−][src]
Expand description
This type holds the host details in their parsed form. It is an enumeration of the set of valid host representations allowed by the IRI specification.
Variants
Ipv4(Ipv4Addr)
Expand description
Holds a parsed IPv4 address; e.g. 127.0.0.1
, 192.0.0.10
, 16.38.10.112
.
Ipv6(Ipv6Addr)
Expand description
Holds a parsed IPv6 address; e.g. [2001:db8::ff00:42:8329]
.
Expand description
Holds a parsed IP future address; e.g. [v7.2001:db8::ff00:42:8329]
.
DomainName(String)
Expand description
Holds a validated domain name; e.g. localhost
, example.com
, node01.us.example.org
.
Trait Implementations
impl Eq for HostKind
[src]
impl StructuralEq for HostKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for HostKind
impl Send for HostKind
impl Sync for HostKind
impl Unpin for HostKind
impl UnwindSafe for HostKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more