Searched refs:SchemeType (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/url/src/ |
D | parser.rs | 158 pub enum SchemeType { enum 164 impl SchemeType { impl 166 !matches!(*self, SchemeType::NotSpecial) in is_special() 170 matches!(*self, SchemeType::File) in is_file() 175 "http" | "https" | "ws" | "wss" | "ftp" => SchemeType::SpecialNotFile, in from() 176 "file" => SchemeType::File, in from() 177 _ => SchemeType::NotSpecial, in from() 387 let scheme_type = SchemeType::from(base_url.scheme()); in parse_url() 428 let scheme_type = SchemeType::from(&self.serialization); in parse_with_scheme() 431 SchemeType::File => { in parse_with_scheme() [all …]
|
D | quirks.rs | 14 use crate::parser::{default_port, Context, Input, Parser, SchemeType}; 117 let scheme_type = SchemeType::from(scheme); in set_host() 118 if scheme_type == SchemeType::File && new_host.is_empty() { in set_host() 168 let scheme_type = SchemeType::from(url.scheme()); in set_hostname() 169 if scheme_type == SchemeType::File && new_hostname.is_empty() { in set_hostname() 178 if SchemeType::from(url.scheme()) == SchemeType::SpecialNotFile in set_hostname() 238 || (SchemeType::from(url.scheme()).is_special() in set_pathname()
|
D | path_segments.rs | 9 use crate::parser::{self, to_u32, SchemeType}; 49 if SchemeType::from(url.scheme()).is_special() { in new() 220 let scheme_type = SchemeType::from(self.url.scheme()); in extend()
|
D | lib.rs | 133 use crate::parser::{to_u32, Context, Parser, SchemeType, PATH_SEGMENT, USERINFO}; 630 if SchemeType::from(self.scheme()).is_special() { in check_invariants() 1448 let scheme_type = SchemeType::from(self.scheme()); in set_query() 1552 let scheme_type = SchemeType::from(self.scheme()); in set_path() 1796 if host.is_empty() && SchemeType::from(self.scheme()).is_special() { in set_host() 1814 if SchemeType::from(self.scheme()).is_special() { in set_host() 1820 let scheme_type = SchemeType::from(self.scheme()); in set_host() 2226 let new_scheme_type = SchemeType::from(&parser.serialization); in set_scheme() 2227 let old_scheme_type = SchemeType::from(self.scheme()); in set_scheme()
|