/third_party/rust/crates/aho-corasick/src/ |
D | dfa.rs | 172 id.to_usize() < self.repr().state_count in is_valid() 197 let o = current.to_usize() * 256 + input as usize; in next_state() 231 id.to_usize() < self.repr().state_count in is_valid() 258 let o = current.to_usize() * alphabet_len + input as usize; in next_state() 292 (id.to_usize() / 256) < self.repr().state_count in is_valid() 314 .get(id.to_usize() / 256) in get_match() 320 let o = id.to_usize() / 256; in match_count() 325 let o = current.to_usize() + input as usize; in next_state() 359 (id.to_usize() / self.repr().alphabet_len()) < self.repr().state_count in is_valid() 381 .get(id.to_usize() / self.repr().alphabet_len()) in get_match() [all …]
|
D | state_id.rs | 16 let requested = match last_state.to_usize().checked_mul(alphabet_len) { in premultiply_overflow_error() 98 fn to_usize(self) -> usize; in to_usize() method 114 fn to_usize(self) -> usize { in to_usize() method 131 fn to_usize(self) -> usize { in to_usize() method 148 fn to_usize(self) -> usize { in to_usize() method 166 fn to_usize(self) -> usize { in to_usize() method 184 fn to_usize(self) -> usize { in to_usize() method
|
D | nfa.rs | 129 &self.states[id.to_usize()].matches in matches() 142 self.states[id.to_usize()].trans.iter_all(byte_classes, f); in iter_all_transitions() 147 self.states[id.to_usize()].fail in failure_transition() 155 self.states[current.to_usize()].next_state(input) in next_state() 159 &self.states[id.to_usize()] in state() 163 &mut self.states[id.to_usize()] in state_mut() 181 get_two_mut(&mut self.states, src.to_usize(), dst.to_usize()); in copy_matches() 237 id.to_usize() < self.states.len() in is_valid() 241 self.states[id.to_usize()].is_match() in is_match_state() 250 let state = match self.states.get(id.to_usize()) { in get_match() [all …]
|
/third_party/rust/crates/codespan/codespan/src/ |
D | file.rs | 244 Ok(self.line_index(id, byte_index as u32).to_usize()) in line_index() 254 Ok(span.start().to_usize()..span.end().to_usize()) in line_range() 306 Ordering::Less => Ok(self.line_starts[line_index.to_usize()]), in line_start() 309 given: line_index.to_usize(), in line_start() 310 max: self.last_line_index().to_usize(), in line_start() 339 given: byte_index.to_usize(), in location() 345 .get(line_start_index.to_usize()..byte_index.to_usize()) in location() 347 let given = byte_index.to_usize(); in location() 371 let start = span.start().to_usize(); in source_slice() 372 let end = span.end().to_usize(); in source_slice()
|
D | index.rs | 34 pub const fn to_usize(self) -> usize { in to_usize() method 66 pub const fn to_usize(self) -> usize { in to_usize() method 129 pub const fn to_usize(self) -> usize { in to_usize() method 205 pub const fn to_usize(self) -> usize { in to_usize() method 265 pub const fn to_usize(self) -> usize { in to_usize() method
|
/third_party/rust/crates/once_cell/src/ |
D | race.rs | 136 self.inner.set(OnceBool::to_usize(value)) in set() 149 OnceBool::from_usize(self.inner.get_or_init(|| OnceBool::to_usize(f()))) in get_or_init() 163 self.inner.get_or_try_init(|| f().map(OnceBool::to_usize)).map(OnceBool::from_usize) in get_or_try_init() 172 fn to_usize(value: bool) -> NonZeroUsize { in to_usize() method
|
/third_party/rust/crates/nom/src/bits/ |
D | complete.rs | 41 let count = count.to_usize(); in take() 94 let count = count.to_usize(); in tag()
|
D | streaming.rs | 18 let count = count.to_usize(); in take() 68 let count = count.to_usize(); in tag()
|
/third_party/rust/crates/codespan/codespan-reporting/tests/snapshots/ |
D | term__multiline_overlapping__rich_no_color.snap | 9 2 │ │ Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]),
|
D | term__multiline_overlapping__rich_color.snap | 9 …e}│{/} {fg:Blue}│{/} Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]),
|
/third_party/rust/crates/nom/src/ |
D | traits.rs | 1236 fn to_usize(&self) -> usize; in to_usize() method 1241 fn to_usize(&self) -> usize { in to_usize() method 1248 fn to_usize(&self) -> usize { in to_usize() method 1255 fn to_usize(&self) -> usize { in to_usize() method 1263 fn to_usize(&self) -> usize { in to_usize() method 1271 fn to_usize(&self) -> usize { in to_usize() method
|
/third_party/rust/crates/codespan/codespan-reporting/ |
D | CHANGELOG.md | 193 2 │ │ Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]), 202 2 │ Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]), 223 2 │ │ Ordering::Less => Ok(self.line_starts()[line_index.to_usize()]),
|
/third_party/rust/crates/nom/src/multi/ |
D | mod.rs | 931 let length: usize = length.to_usize(); in length_data() 977 let length: usize = length.to_usize(); in length_value() 1031 for _ in 0..count.to_usize() { in length_count()
|
/third_party/rust/crates/nom/src/bytes/ |
D | streaming.rs | 418 let c = count.to_usize(); in take()
|
D | complete.rs | 410 let c = count.to_usize(); in take()
|