Home
last modified time | relevance | path

Searched defs:usize (Results 1 – 25 of 3864) sorted by relevance

12345678910>>...155

/external/rust/android-crates-io/crates/arbitrary/src/
Dsize_hint.rs18 depth: usize, in recursion_guard()
19 f: impl FnOnce(usize) -> (usize, Option<usize>), in recursion_guard()
39 depth: usize, in try_recursion_guard()
40 f: impl FnOnce(usize) -> Result<(usize, Option<usize>), crate::MaxRecursionReached>, in try_recursion_guard()
51 pub fn and(lhs: (usize, Option<usize>), rhs: (usize, Option<usize>)) -> (usize, Option<usize>) { in and()
62 pub fn and_all(hints: &[(usize, Option<usize>)]) -> (usize, Option<usize>) { in and_all()
69 pub fn or(lhs: (usize, Option<usize>), rhs: (usize, Option<usize>)) -> (usize, Option<usize>) { in or()
82 pub fn or_all(hints: &[(usize, Option<usize>)]) -> (usize, Option<usize>) { in or_all()
/external/rust/android-crates-io/crates/lz4_flex/src/
Dsink.rs15 offset: usize, in vec_sink_for_compression()
16 pos: usize, in vec_sink_for_compression()
17 required_capacity: usize, in vec_sink_for_compression()
34 offset: usize, in vec_sink_for_decompression()
35 pos: usize, in vec_sink_for_decompression()
36 required_capacity: usize, in vec_sink_for_decompression()
60 fn pos(&self) -> usize; in pos()
62 fn capacity(&self) -> usize; in capacity()
65 unsafe fn set_pos(&mut self, new_pos: usize); in set_pos()
68 fn extend_with_fill(&mut self, byte: u8, len: usize); in extend_with_fill()
[all …]
/external/rust/android-crates-io/crates/arbitrary/src/foreign/core/
Dcell.rs15 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
20 fn try_size_hint(depth: usize) -> Result<(usize, Option<usize>), MaxRecursionReached> { in try_size_hint()
34 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
39 fn try_size_hint(depth: usize) -> Result<(usize, Option<usize>), MaxRecursionReached> { in try_size_hint()
53 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
58 fn try_size_hint(depth: usize) -> Result<(usize, Option<usize>), MaxRecursionReached> { in try_size_hint()
Dnum.rs49 impl<'a> Arbitrary<'a> for usize { implementation
55 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
66 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
133 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
138 fn try_size_hint(depth: usize) -> Result<(usize, Option<usize>), MaxRecursionReached> { in try_size_hint()
/external/rust/android-crates-io/crates/zerovec/src/map/
Dvecs.rs36 fn zvl_binary_search(&self, k: &T) -> Result<usize, usize> in zvl_binary_search()
46 range: Range<usize>, in zvl_binary_search_in_range()
47 ) -> Option<Result<usize, usize>> in zvl_binary_search_in_range()
54 fn zvl_binary_search_by(&self, predicate: impl FnMut(&T) -> Ordering) -> Result<usize, usize>; in zvl_binary_search_by() argument
62 range: Range<usize>, in zvl_binary_search_in_range_by()
63 ) -> Option<Result<usize, usize>>; in zvl_binary_search_in_range_by() argument
68 fn zvl_len(&self) -> usize; in zvl_len()
143 fn zvl_insert(&mut self, index: usize, value: &T); in zvl_insert()
147 fn zvl_replace(&mut self, index: usize, value: &T) -> Self::OwnedType; in zvl_replace()
155 fn zvl_reserve(&mut self, addl: usize); in zvl_reserve()
[all …]
/external/rust/android-crates-io/crates/winnow/benches/
Dnext_slice.rs92 fn parser_ascii_char(input: &mut &str) -> PResult<usize> { in parser_ascii_char()
96 fn parser_ascii_str(input: &mut &str) -> PResult<usize> { in parser_ascii_str()
100 fn parser_ascii_one_of(input: &mut &str) -> PResult<usize> { in parser_ascii_one_of()
104 fn parser_ascii_tag_char(input: &mut &str) -> PResult<usize> { in parser_ascii_tag_char()
108 fn parser_ascii_tag_str(input: &mut &str) -> PResult<usize> { in parser_ascii_tag_str()
112 fn parser_utf8_char(input: &mut &str) -> PResult<usize> { in parser_utf8_char()
116 fn parser_utf8_str(input: &mut &str) -> PResult<usize> { in parser_utf8_str()
120 fn parser_utf8_one_of(input: &mut &str) -> PResult<usize> { in parser_utf8_one_of()
124 fn parser_utf8_tag_char(input: &mut &str) -> PResult<usize> { in parser_utf8_tag_char()
128 fn parser_utf8_tag_str(input: &mut &str) -> PResult<usize> { in parser_utf8_tag_str()
/external/rust/android-crates-io/crates/arbitrary/src/foreign/std/
Dnet.rs12 fn size_hint(_depth: usize) -> (usize, Option<usize>) { in size_hint()
23 fn size_hint(_depth: usize) -> (usize, Option<usize>) { in size_hint()
37 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
51 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
67 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
87 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
/external/rust/android-crates-io/crates/regex/src/
Dexec.rs387 fn slots_len(&self) -> usize { in slots_len()
391 fn next_after_empty(&self, text: &str, i: usize) -> usize { in next_after_empty()
396 fn shortest_match_at(&self, text: &str, start: usize) -> Option<usize> { in shortest_match_at()
406 fn find_at(&self, text: &str, start: usize) -> Option<(usize, usize)> { in find_at() argument
415 start: usize, in captures_read_at()
416 ) -> Option<(usize, usize)> { in captures_read_at() argument
427 fn slots_len(&self) -> usize { in slots_len()
431 fn next_after_empty(&self, _text: &[u8], i: usize) -> usize { in next_after_empty()
438 fn shortest_match_at(&self, text: &[u8], start: usize) -> Option<usize> { in shortest_match_at()
537 fn find_at(&self, text: &[u8], start: usize) -> Option<(usize, usize)> { in find_at() argument
[all …]
Dre_trait.rs22 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
78 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
83 fn count(self) -> usize { in count()
110 fn slots_len(&self) -> usize; in slots_len()
122 fn next_after_empty(&self, text: &Self::Text, i: usize) -> usize; in next_after_empty()
128 start: usize, in shortest_match_at()
129 ) -> Option<usize>; in shortest_match_at()
138 start: usize, in find_at()
[all …]
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/src/util/
Dmemchr.rs12 pub(crate) fn memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr()
17 pub(crate) fn memchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2()
27 ) -> Option<usize> { in memchr3()
32 pub(crate) fn memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memrchr()
37 pub(crate) fn memrchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memrchr2()
47 ) -> Option<usize> { in memrchr3()
55 pub(crate) fn memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr()
60 pub(crate) fn memchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2()
70 ) -> Option<usize> { in memchr3()
75 pub(crate) fn memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memrchr()
[all …]
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.9/src/util/
Dmemchr.rs12 pub(crate) fn memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr()
17 pub(crate) fn memchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2()
27 ) -> Option<usize> { in memchr3()
32 pub(crate) fn memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memrchr()
37 pub(crate) fn memrchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memrchr2()
47 ) -> Option<usize> { in memrchr3()
55 pub(crate) fn memchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memchr()
60 pub(crate) fn memchr2(n1: u8, n2: u8, haystack: &[u8]) -> Option<usize> { in memchr2()
70 ) -> Option<usize> { in memchr3()
75 pub(crate) fn memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memrchr()
[all …]
/external/rust/android-crates-io/crates/arbitrary/src/foreign/alloc/
Dboxed.rs15 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
20 fn try_size_hint(depth: usize) -> Result<(usize, Option<usize>), crate::MaxRecursionReached> { in try_size_hint()
38 fn size_hint(_depth: usize) -> (usize, Option<usize>) { in size_hint()
49 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
Dsync.rs15 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
20 fn try_size_hint(depth: usize) -> Result<(usize, Option<usize>), crate::MaxRecursionReached> { in try_size_hint()
38 fn size_hint(_depth: usize) -> (usize, Option<usize>) { in size_hint()
49 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
Drc.rs15 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
20 fn try_size_hint(depth: usize) -> Result<(usize, Option<usize>), crate::MaxRecursionReached> { in try_size_hint()
38 fn size_hint(_depth: usize) -> (usize, Option<usize>) { in size_hint()
49 fn size_hint(depth: usize) -> (usize, Option<usize>) { in size_hint()
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/bytes-1.8.0/src/
Dlib.rs117 fn saturating_sub_usize_u64(a: usize, b: u64) -> usize { in saturating_sub_usize_u64()
127 fn min_u64_usize(a: u64, b: usize) -> usize { in min_u64_usize()
137 fn panic_advance(idx: usize, len: usize) -> ! { in panic_advance()
145 fn panic_does_not_fit(size: usize, nbytes: usize) -> ! { in panic_does_not_fit()
163 fn offset_from(dst: *const u8, original: *const u8) -> usize { in offset_from()
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/bytes-1.8.0/src/
Dlib.rs117 fn saturating_sub_usize_u64(a: usize, b: u64) -> usize { in saturating_sub_usize_u64()
127 fn min_u64_usize(a: u64, b: usize) -> usize { in min_u64_usize()
137 fn panic_advance(idx: usize, len: usize) -> ! { in panic_advance()
145 fn panic_does_not_fit(size: usize, nbytes: usize) -> ! { in panic_does_not_fit()
163 fn offset_from(dst: *const u8, original: *const u8) -> usize { in offset_from()
/external/crosvm/win_audio/src/
Dlib.rs88 fn get_shared_audio_engine_period_in_bytes(&self) -> usize { in get_shared_audio_engine_period_in_bytes()
102 num_channels: usize, in new_playback_stream_and_get_shared_format()
104 frame_rate: usize, in new_playback_stream_and_get_shared_format()
105 buffer_size: usize, in new_playback_stream_and_get_shared_format()
110 _num_channels: usize, in new_async_playback_stream_and_get_shared_format()
112 _frame_rate: usize, in new_async_playback_stream_and_get_shared_format()
113 _buffer_size: usize, in new_async_playback_stream_and_get_shared_format()
122 _num_channels: usize, in new_async_capture_stream_and_get_shared_format()
125 _buffer_size: usize, in new_async_capture_stream_and_get_shared_format()
145 num_channels: usize, in new_playback_stream_and_get_shared_format()
[all …]
/external/rust/android-crates-io/crates/textdistance/src/
Dstr.rs16 pub fn damerau_levenshtein(s1: &str, s2: &str) -> usize { in damerau_levenshtein()
29 pub fn damerau_levenshtein_restricted(s1: &str, s2: &str) -> usize { in damerau_levenshtein_restricted()
45 pub fn hamming(s1: &str, s2: &str) -> usize { in hamming()
57 pub fn lcsseq(s1: &str, s2: &str) -> usize { in lcsseq()
69 pub fn lcsstr(s1: &str, s2: &str) -> usize { in lcsstr()
81 pub fn levenshtein(s1: &str, s2: &str) -> usize { in levenshtein()
105 pub fn sift4_simple(s1: &str, s2: &str) -> usize { in sift4_simple()
117 pub fn sift4_common(s1: &str, s2: &str) -> usize { in sift4_common()
165 pub fn mlipns(s1: &str, s2: &str) -> usize { in mlipns()
178 pub fn bag(s1: &str, s2: &str) -> usize { in bag()
[all …]
/external/rust/android-crates-io/crates/tokio/src/runtime/scheduler/multi_thread_alt/handle/
Dmetrics.rs6 pub(crate) fn num_workers(&self) -> usize { in num_workers()
10 pub(crate) fn num_blocking_threads(&self) -> usize { in num_blocking_threads()
17 pub(crate) fn num_idle_blocking_threads(&self) -> usize { in num_idle_blocking_threads()
21 pub(crate) fn num_alive_tasks(&self) -> usize { in num_alive_tasks()
39 pub(crate) fn injection_queue_depth(&self) -> usize { in injection_queue_depth()
43 pub(crate) fn worker_local_queue_depth(&self, worker: usize) -> usize { in worker_local_queue_depth()
47 pub(crate) fn blocking_queue_depth(&self) -> usize { in blocking_queue_depth()
/external/rust/android-crates-io/crates/regex/src/literal/
Dmod.rs31 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/android-crates-io/crates/miette/src/
Dsource_impls.rs16 context_lines_before: usize, in context_info()
17 context_lines_after: usize, in context_info()
104 context_lines_before: usize, in read_span()
105 context_lines_after: usize, in read_span()
116 context_lines_before: usize, in read_span()
117 context_lines_after: usize, in read_span()
127 context_lines_before: usize, in read_span()
128 context_lines_after: usize, in read_span()
138 context_lines_before: usize, in read_span()
139 context_lines_after: usize, in read_span()
[all …]
/external/rust/android-crates-io/crates/lz4_flex/src/block/
Dhashtable.rs37 fn get_at(&self, pos: usize) -> usize; in get_at()
38 fn put_at(&mut self, pos: usize, val: usize); in put_at()
43 fn get_hash_at(input: &[u8], pos: usize) -> usize { in get_hash_at()
48 fn get_hash_at(input: &[u8], pos: usize) -> usize { in get_hash_at()
76 fn get_at(&self, hash: usize) -> usize { in get_at()
80 fn put_at(&mut self, hash: usize, val: usize) { in put_at()
88 fn get_hash_at(input: &[u8], pos: usize) -> usize { in get_hash_at()
117 fn get_at(&self, hash: usize) -> usize { in get_at()
121 fn put_at(&mut self, hash: usize, val: usize) { in put_at()
151 fn get_at(&self, hash: usize) -> usize { in get_at()
[all …]
/external/rust/android-crates-io/crates/itertools/benches/
Dk_smallest.rs5 fn strict(b: &mut Bencher, (k, vals): &(usize, &Vec<usize>)) { in strict()
9 fn relaxed(b: &mut Bencher, (k, vals): &(usize, &Vec<usize>)) { in relaxed()
13 fn ascending(n: usize) -> Vec<usize> { in ascending()
17 fn random(n: usize) -> Vec<usize> { in random()
23 fn descending(n: usize) -> Vec<usize> { in descending()
27 fn k_smallest(c: &mut Criterion, order: &str, vals: fn(usize) -> Vec<usize>) { in k_smallest()
/external/rust/android-crates-io/crates/ring/src/aead/chacha/
Dfallback.rs26 src: RangeFrom<usize>, in ChaCha20_ctr32()
91 fn quarterround(x: &mut State, a: usize, b: usize, c: usize, d: usize) { in quarterround()
93 fn step(x: &mut State, a: usize, b: usize, c: usize, rotation: u32) { in quarterround()
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/unicode-width-0.1.14/src/
Dlib.rs201 fn width(self) -> Option<usize>; in width()
211 fn width_cjk(self) -> Option<usize>; in width_cjk()
216 fn width(self) -> Option<usize> { in width()
222 fn width_cjk(self) -> Option<usize> { in width_cjk()
235 fn width(&self) -> usize; in width()
244 fn width_cjk(&self) -> usize; in width_cjk()
249 fn width(&self) -> usize { in width()
255 fn width_cjk(&self) -> usize { in width_cjk()

12345678910>>...155