Searched refs:HostInternal (Results 1 – 3 of 3) sorted by relevance
/external/rust/crates/url/src/ |
D | host.rs | 21 pub(crate) enum HostInternal { enum 28 impl From<Host<String>> for HostInternal { implementation 29 fn from(host: Host<String>) -> HostInternal { in from() argument 31 Host::Domain(ref s) if s.is_empty() => HostInternal::None, in from() 32 Host::Domain(_) => HostInternal::Domain, in from() 33 Host::Ipv4(address) => HostInternal::Ipv4(address), in from() 34 Host::Ipv6(address) => HostInternal::Ipv6(address), in from()
|
D | lib.rs | 132 use crate::host::HostInternal; 183 host: HostInternal, 623 HostInternal::None => assert_eq!(host_str, ""), in check_invariants() 624 HostInternal::Ipv4(address) => assert_eq!(host_str, address.to_string()), in check_invariants() 625 HostInternal::Ipv6(address) => { in check_invariants() 629 HostInternal::Domain => { in check_invariants() 654 assert_eq!(self.host, HostInternal::None); in check_invariants() 937 !matches!(self.host, HostInternal::None) in has_host() 1014 HostInternal::None => None, in host() 1015 HostInternal::Domain => Some(Host::Domain(self.slice(self.host_start..self.host_end))), in host() [all …]
|
D | parser.rs | 13 use crate::host::{Host, HostInternal}; 486 let host = HostInternal::None; in parse_non_special() 531 let mut has_host = !matches!(host, HostInternal::None); in parse_file() 546 host = HostInternal::None; in parse_file() 567 let mut host = HostInternal::None; in parse_file() 687 host: HostInternal::None, in parse_file() 710 host: HostInternal::None, in parse_file() 856 if host == HostInternal::None && has_authority { in after_double_slash() 955 ) -> ParseResult<(u32, HostInternal, Option<u16>, Input<'i>)> { in parse_host_and_port() argument 1052 ) -> ParseResult<(bool, HostInternal, Input<'i>)> { in parse_file_host() argument [all …]
|