Lines Matching refs:usize
102 fn index(&self, position: Position) -> usize { in index() argument
106 Position::AfterScheme => self.scheme_end as usize, in index()
110 self.scheme_end as usize + "://".len() in index()
114 self.scheme_end as usize + ":".len() in index()
118 Position::AfterUsername => self.username_end as usize, in index()
122 self.username_end as usize + ":".len() in index()
125 self.username_end as usize in index()
132 self.host_start as usize - "@".len() in index()
135 self.host_start as usize in index()
139 Position::BeforeHost => self.host_start as usize, in index()
141 Position::AfterHost => self.host_end as usize, in index()
146 self.host_end as usize + ":".len() in index()
148 self.host_end as usize in index()
152 Position::AfterPort => self.path_start as usize, in index()
154 Position::BeforePath => self.path_start as usize, in index()
157 (Some(q), _) => q as usize, in index()
158 (None, Some(f)) => f as usize, in index()
165 q as usize + "?".len() in index()
167 (None, Some(f)) => f as usize, in index()
173 Some(f) => f as usize, in index()
179 f as usize + "#".len() in index()