/external/rust/crates/arbitrary/src/ |
D | size_hint.rs | 13 depth: usize, in recursion_guard() 14 f: impl FnOnce(usize) -> (usize, Option<usize>), in recursion_guard() 26 pub fn and(lhs: (usize, Option<usize>), rhs: (usize, Option<usize>)) -> (usize, Option<usize>) { in and() 37 pub fn and_all(hints: &[(usize, Option<usize>)]) -> (usize, Option<usize>) { in and_all() 44 pub fn or(lhs: (usize, Option<usize>), rhs: (usize, Option<usize>)) -> (usize, Option<usize>) { in or() 57 pub fn or_all(hints: &[(usize, Option<usize>)]) -> (usize, Option<usize>) { in or_all()
|
D | lib.rs | 255 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint() 267 fn size_hint(_depth: usize) -> (usize, Option<usize>) { in size_hint() 278 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint() 363 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint() 374 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint() 385 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint() 396 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint() 498 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint() 516 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint() 534 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint() [all …]
|
/external/rust/crates/parking_lot/src/ |
D | elision.rs | 41 fn elision_compare_exchange_acquire(&self, _: usize, _: usize) -> Result<usize, usize> { in elision_compare_exchange_acquire() argument 46 fn elision_fetch_sub_release(&self, _: usize) -> usize { in elision_fetch_sub_release() 57 fn elision_compare_exchange_acquire(&self, current: usize, new: usize) -> Result<usize, usize> { in elision_compare_exchange_acquire() argument 74 fn elision_compare_exchange_acquire(&self, current: usize, new: usize) -> Result<usize, usize> { in elision_compare_exchange_acquire() argument 92 fn elision_fetch_sub_release(&self, val: usize) -> usize { in elision_fetch_sub_release() 105 fn elision_fetch_sub_release(&self, val: usize) -> usize { in elision_fetch_sub_release()
|
/external/rust/crates/memchr/src/ |
D | lib.rs | 133 pub fn memchr(needle: u8, haystack: &[u8]) -> Option<usize> { in memchr() 136 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 142 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 152 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 162 fn imp(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 196 pub fn memchr2(needle1: u8, needle2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 199 fn imp(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 205 fn imp(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 214 fn imp(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 253 ) -> Option<usize> { in memchr3() [all …]
|
D | fallback.rs | 43 fn repeat_byte(b: u8) -> usize { in repeat_byte() 47 pub fn memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 61 let chunk = (ptr as *const usize).read_unaligned(); in memchr() constant 72 let a = *(ptr as *const usize); in memchr() constant 73 let b = *(ptr.add(USIZE_BYTES) as *const usize); in memchr() constant 86 pub fn memchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 100 let chunk = (ptr as *const usize).read_unaligned(); in memchr2() constant 113 let chunk = *(ptr as *const usize); in memchr2() constant 126 pub fn memchr3(n1: u8, n2: u8, n3: u8, haystack: &[u8]) -> Option<usize> { in memchr3() 141 let chunk = (ptr as *const usize).read_unaligned(); in memchr3() constant [all …]
|
D | naive.rs | 3 pub fn memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 7 pub fn memchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 11 pub fn memchr3(n1: u8, n2: u8, n3: u8, haystack: &[u8]) -> Option<usize> { in memchr3() 15 pub fn memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memrchr() 19 pub fn memrchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memrchr2() 23 pub fn memrchr3(n1: u8, n2: u8, n3: u8, haystack: &[u8]) -> Option<usize> { in memrchr3()
|
/external/rust/crates/regex/src/ |
D | exec.rs | 390 fn slots_len(&self) -> usize { in slots_len() 394 fn next_after_empty(&self, text: &str, i: usize) -> usize { in next_after_empty() 399 fn shortest_match_at(&self, text: &str, start: usize) -> Option<usize> { in shortest_match_at() 409 fn find_at(&self, text: &str, start: usize) -> Option<(usize, usize)> { in find_at() argument 418 start: usize, in captures_read_at() 419 ) -> Option<(usize, usize)> { in captures_read_at() argument 430 fn slots_len(&self) -> usize { in slots_len() 434 fn next_after_empty(&self, _text: &[u8], i: usize) -> usize { in next_after_empty() 441 fn shortest_match_at(&self, text: &[u8], start: usize) -> Option<usize> { in shortest_match_at() 540 fn find_at(&self, text: &[u8], start: usize) -> Option<(usize, usize)> { in find_at() argument [all …]
|
D | re_trait.rs | 22 pub fn pos(&self, i: usize) -> Option<(usize, usize)> { in pos() argument 41 pub fn len(&self) -> usize { in len() 66 fn next(&mut self) -> Option<Option<(usize, usize)>> { in next() argument 99 fn slots_len(&self) -> usize; in slots_len() 111 fn next_after_empty(&self, text: &Self::Text, i: usize) -> usize; in next_after_empty() 117 start: usize, in shortest_match_at() 118 ) -> Option<usize>; in shortest_match_at() 127 start: usize, in find_at() 128 ) -> Option<(usize, usize)>; in find_at() argument 136 start: usize, in captures_read_at() [all …]
|
D | pikevm.rs | 95 start: usize, in exec() 96 end: usize, in exec() 122 end: usize, in exec_() 229 thread_caps: &mut [Option<usize>], in step() 230 ip: usize, in step() 274 thread_caps: &mut [Option<usize>], in add() 275 ip: usize, in add() 295 thread_caps: &mut [Option<usize>], in add_step() 296 mut ip: usize, in add_step() 347 fn resize(&mut self, num_insts: usize, ncaps: usize) { in resize() [all …]
|
/external/rust/crates/unicode-width/src/ |
D | lib.rs | 78 fn width(self) -> Option<usize>; in width() 87 fn width_cjk(self) -> Option<usize>; in width_cjk() 92 fn width(self) -> Option<usize> { cw::width(self, false) } in width() 95 fn width_cjk(self) -> Option<usize> { cw::width(self, true) } in width_cjk() 108 fn width<'a>(&'a self) -> usize; in width() 118 fn width_cjk<'a>(&'a self) -> usize; in width_cjk() 123 fn width(&self) -> usize { in width() 128 fn width_cjk(&self) -> usize { in width_cjk()
|
/external/rust/crates/regex/src/literal/ |
D | mod.rs | 31 pub fn find(&self, _: &[u8]) -> Option<(usize, usize)> { in find() argument 35 pub fn find_start(&self, _: &[u8]) -> Option<(usize, usize)> { in find_start() argument 39 pub fn find_end(&self, _: &[u8]) -> Option<(usize, usize)> { in find_end() argument 47 pub fn len(&self) -> usize { in len() 51 pub fn approximate_size(&self) -> usize { in approximate_size()
|
/external/rust/crates/tokio/src/util/ |
D | bit.rs | 31 pub(crate) const fn max_value(&self) -> usize { in max_value() 35 pub(crate) fn pack(&self, value: usize, base: usize) -> usize { in pack() 44 pub(crate) fn pack_lossy(&self, value: usize, base: usize) -> usize { in pack_lossy() 48 pub(crate) fn unpack(&self, src: usize) -> usize { in unpack() 69 pub(crate) const fn mask_for(n: u32) -> usize { in mask_for() 75 pub(crate) const fn unpack(src: usize, mask: usize, shift: u32) -> usize { in unpack()
|
/external/rust/crates/bstr/src/byteset/ |
D | scalar.rs | 22 fn repeat_byte(b: u8) -> usize { in repeat_byte() 26 pub fn inv_memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in inv_memchr() 51 let a = *(ptr as *const usize); in inv_memchr() constant 52 let b = *(ptr.add(USIZE_BYTES) as *const usize); in inv_memchr() constant 65 pub fn inv_memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in inv_memrchr() 89 let a = *(ptr.sub(2 * USIZE_BYTES) as *const usize); in inv_memrchr() constant 90 let b = *(ptr.sub(1 * USIZE_BYTES) as *const usize); in inv_memrchr() constant 108 ) -> Option<usize> { in forward_search() 127 ) -> Option<usize> { in reverse_search() 140 unsafe fn read_unaligned_usize(ptr: *const u8) -> usize { in read_unaligned_usize() [all …]
|
/external/crosvm/sys_util/src/ |
D | mmap.rs | 119 fn validate_includes_range(mmap_size: usize, offset: usize, range_size: usize) -> Result<()> { in validate_includes_range() 142 fn size(&self) -> usize; in size() 156 _offset: usize, in add_fd_mapping() 157 _size: usize, in add_fd_mapping() 166 fn remove_mapping(&mut self, _offset: usize, _size: usize) -> Result<()> { in remove_mapping() 174 pub fn msync(&self, offset: usize, size: usize) -> Result<()> { in msync() 223 pub fn new_protection(size: usize, prot: Protection) -> Result<MemoryMapping> { in new_protection() 246 pub fn from_fd_offset(fd: &dyn AsRawFd, size: usize, offset: u64) -> Result<MemoryMapping> { in from_fd_offset() 260 size: usize, in from_fd_offset_flags() 281 size: usize, in from_fd_offset_protection() [all …]
|
/external/rust/crates/bstr/src/search/ |
D | twoway.rs | 139 pub fn find(&self, haystack: &[u8]) -> Option<usize> { in find() 148 pub fn rfind(&self, haystack: &[u8]) -> Option<usize> { in rfind() 161 ) -> Option<usize> { in find_with() 188 ) -> Option<usize> { in rfind_with() 222 period: usize, in find_small() 223 ) -> Option<usize> { in find_small() 237 period: usize, in find_small_imp() 238 ) -> Option<usize> { in find_small_imp() 283 shift: usize, in find_large() 284 ) -> Option<usize> { in find_large() [all …]
|
D | tests.rs | 62 mut search: impl FnMut(&[u8], &[u8]) -> Option<usize>, in run_search_tests_fwd() 84 mut search: impl FnMut(&[u8], &[u8]) -> Option<usize>, in run_search_tests_rev() 146 mut search: impl FnMut(&[u8], &[u8]) -> Option<usize>, in prop_prefix_is_substring() 166 mut search: impl FnMut(&[u8], &[u8]) -> Option<usize>, in prop_suffix_is_substring() 188 mut search: impl FnMut(&[u8], &[u8]) -> Option<usize>, in prop_matches_naive() 198 fn naive_find(needle: &[u8], haystack: &[u8]) -> Option<usize> { in naive_find() 213 fn naive_rfind(needle: &[u8], haystack: &[u8]) -> Option<usize> { in naive_rfind()
|
/external/crosvm/fuse/src/ |
D | server.rs | 42 fn write_at<F>(&mut self, offset: usize, f: F) -> io::Result<usize> in write_at() 44 F: Fn(&mut Self) -> io::Result<usize>; in write_at() 70 size: usize, in map() 89 size: usize, in map() 116 ) -> Result<usize> { in handle_message() 184 fn lookup<R: Reader, W: Writer>(&self, in_header: InHeader, mut r: R, w: W) -> Result<usize> { in lookup() 208 fn forget<R: Reader>(&self, in_header: InHeader, mut r: R) -> Result<usize> { in forget() 218 fn getattr<R: Reader, W: Writer>(&self, in_header: InHeader, mut r: R, w: W) -> Result<usize> { in getattr() 248 fn setattr<R: Reader, W: Writer>(&self, in_header: InHeader, mut r: R, w: W) -> Result<usize> { in setattr() 281 fn readlink<W: Writer>(&self, in_header: InHeader, w: W) -> Result<usize> { in readlink() [all …]
|
/external/rust/crates/aho-corasick/src/ |
D | state_id.rs | 14 alphabet_len: usize, in premultiply_overflow_error() 57 impl Sealed for usize {} implementation 98 fn to_usize(self) -> usize; in to_usize() 107 impl StateID for usize { implementation 109 fn from_usize(n: usize) -> usize { in from_usize() 114 fn to_usize(self) -> usize { in to_usize() 131 fn to_usize(self) -> usize { in to_usize() 148 fn to_usize(self) -> usize { in to_usize() 166 fn to_usize(self) -> usize { in to_usize() 184 fn to_usize(self) -> usize { in to_usize()
|
D | automaton.rs | 141 match_index: usize, in get_match() 142 end: usize, in get_match() 149 fn match_count(&self, id: Self::ID) -> usize; in match_count() 189 at: usize, in standard_find_at() 214 mut at: usize, in standard_find_at_imp() 274 at: usize, in leftmost_find_at() 299 mut at: usize, in leftmost_find_at_imp() 375 at: usize, in leftmost_find_at_no_state() 398 mut at: usize, in leftmost_find_at_no_state_imp() 479 at: usize, in overlapping_find_at() [all …]
|
/external/rust/crates/rayon/src/ |
D | math.rs | 6 pub(super) fn div_round_up(n: usize, divisor: usize) -> usize { in div_round_up() 16 pub(super) fn simplify_range(range: impl RangeBounds<usize>, len: usize) -> Range<usize> { in simplify_range()
|
/external/rust/crates/memchr/src/x86/ |
D | mod.rs | 78 pub fn memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr() 83 pub fn memchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2() 88 pub fn memchr3(n1: u8, n2: u8, n3: u8, haystack: &[u8]) -> Option<usize> { in memchr3() 100 pub fn memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memrchr() 105 pub fn memrchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memrchr2() 110 pub fn memrchr3(n1: u8, n2: u8, n3: u8, haystack: &[u8]) -> Option<usize> { in memrchr3()
|
/external/rust/crates/vmm_vhost/src/ |
D | backend.rs | 120 fn set_vring_num(&self, queue_index: usize, num: u16) -> Result<()>; in set_vring_num() 127 fn set_vring_addr(&self, queue_index: usize, config_data: &VringConfigData) -> Result<()>; in set_vring_addr() 134 fn set_vring_base(&self, queue_index: usize, base: u16) -> Result<()>; in set_vring_base() 144 fn set_vring_call(&self, queue_index: usize, fd: &EventFd) -> Result<()>; in set_vring_call() 152 fn set_vring_kick(&self, queue_index: usize, fd: &EventFd) -> Result<()>; in set_vring_kick() 159 fn set_vring_err(&self, queue_index: usize, fd: &EventFd) -> Result<()>; in set_vring_err() 206 fn set_vring_num(&mut self, queue_index: usize, num: u16) -> Result<()>; in set_vring_num() 213 fn set_vring_addr(&mut self, queue_index: usize, config_data: &VringConfigData) -> Result<()>; in set_vring_addr() 220 fn set_vring_base(&mut self, queue_index: usize, base: u16) -> Result<()>; in set_vring_base() 230 fn set_vring_call(&mut self, queue_index: usize, fd: &EventFd) -> Result<()>; in set_vring_call() [all …]
|
/external/rust/crates/nom/src/bits/ |
D | mod.rs | 37 pub fn bits<I, O, E1: ParseError<(I, usize)>+ErrorConvert<E2>, E2: ParseError<I>, P>(parser: P) -> … in bits() argument 39 I: Slice<RangeFrom<usize>>, in bits() 54 pub fn bitsc<I, O, E1: ParseError<(I, usize)>+ErrorConvert<E2>, E2: ParseError<I>, P>(input: I, par… in bitsc() argument 56 I: Slice<RangeFrom<usize>>, in bitsc() 87 pub fn bytes<I, O, E1: ParseError<I>+ErrorConvert<E2>, E2: ParseError<(I, usize)>, P>(parser: P) ->… in bytes() argument 113 pub fn bytesc<I, O, E1: ParseError<I>+ErrorConvert<E2>, E2: ParseError<(I, usize)>, P>(input: (I, u… in bytesc() argument
|
/external/rust/crates/bstr/src/ |
D | ascii.rs | 44 pub fn first_non_ascii_byte(slice: &[u8]) -> usize { in first_non_ascii_byte() 57 fn first_non_ascii_byte_fallback(slice: &[u8]) -> usize { in first_non_ascii_byte_fallback() 81 let a = *(ptr as *const usize); in first_non_ascii_byte_fallback() constant 82 let b = *(ptr_add(ptr, USIZE_BYTES) as *const usize); in first_non_ascii_byte_fallback() constant 94 ) -> usize { in first_non_ascii_byte_fallback() 95 let a = *(ptr as *const usize); in first_non_ascii_byte_fallback() constant 96 let b = *(ptr_add(ptr, USIZE_BYTES) as *const usize); in first_non_ascii_byte_fallback() constant 119 fn first_non_ascii_byte_sse2(slice: &[u8]) -> usize { in first_non_ascii_byte_sse2() 204 ) -> usize { in first_non_ascii_byte_slow() 225 fn first_non_ascii_byte_mask(mask: usize) -> usize { in first_non_ascii_byte_mask() [all …]
|
/external/rust/crates/tokio/src/io/util/ |
D | read_line.rs | 46 fn put_back_original_data(output: &mut String, mut vector: Vec<u8>, num_bytes_read: usize) { in put_back_original_data() 57 io_res: io::Result<usize>, in finish_string_read() 59 read: usize, in finish_string_read() 62 ) -> Poll<io::Result<usize>> { in finish_string_read() 99 read: &mut usize, in read_line_internal() 100 ) -> Poll<io::Result<usize>> { in read_line_internal()
|