Lines Matching refs:username_end
180 username_end: u32, // Before ':' (if a password is given) or '@' (if not) field
609 if self.username_end != self.serialization.len() as u32 { in check_invariants()
610 match self.byte_at(self.username_end) { in check_invariants()
612 assert!(self.host_start >= self.username_end + 2); in check_invariants()
615 b'@' => assert!(self.host_start == self.username_end + 1), in check_invariants()
616 _ => assert_eq!(self.username_end, self.scheme_end + 3), in check_invariants()
619 assert!(self.host_start >= self.username_end); in check_invariants()
651 assert_eq!(self.username_end, self.scheme_end + 1); in check_invariants()
673 assert_eq!(self.username_end, other.username_end); in check_invariants()
870 if self.has_authority() && self.username_end > self.scheme_end + scheme_separator_len { in username()
871 self.slice(self.scheme_end + scheme_separator_len..self.username_end) in username()
905 && self.username_end != self.serialization.len() as u32 in password()
906 && self.byte_at(self.username_end) == b':' in password()
909 Some(self.slice(self.username_end + 1..self.host_start - 1)) in password()
1833 self.username_end = new_path_start; in set_host()
1858 debug_assert!(self.username_end == self.host_start); in set_host_internal()
1861 self.username_end += 2; in set_host_internal()
1975 self.serialization.truncate(self.username_end as usize); in set_password()
1998 } else if self.byte_at(self.username_end) == b':' { in set_password()
2003 let empty_username = username_start == self.username_end; in set_password()
2004 let start = self.username_end; // Remove the ':' in set_password()
2068 if self.slice(username_start..self.username_end) == username { in set_username()
2071 let after_username = self.slice(self.username_end..).to_owned(); in set_username()
2076 let mut removed_bytes = self.username_end; in set_username()
2077 self.username_end = to_u32(self.serialization.len()).unwrap(); in set_username()
2078 let mut added_bytes = self.username_end; in set_username()
2080 let new_username_is_empty = self.username_end == username_start; in set_username()
2250 adjust(&mut self.username_end); in set_scheme()
2310 username_end: host_start, in from_file_path()
2366 ref username_end, in serialize_internal()
2378 username_end, in serialize_internal()
2406 username_end, in deserialize_internal()
2418 username_end, in deserialize_internal()