pub type IHost<'a> = Host<'a, IRegName>;
Expand description
A parsed host component for IRI.
Aliased Type§
enum IHost<'a> {
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
IpvFuture,
RegName(&'a EStr<IRegName>),
}
Variants§
Ipv4(Ipv4Addr)
An IPv4 address.
Ipv6(Ipv6Addr)
An IPv6 address.
IpvFuture
An IP address of future version.
This variant is marked as non-exhaustive because the API design for IPvFuture addresses is to be determined.
RegName(&'a EStr<IRegName>)
A registered name.
Note that ASCII characters within a registered name are case-insensitive.