Home
last modified time | relevance | path

Searched refs:by_ref (Results 1 – 25 of 55) sorted by relevance

123

/external/rust/crates/peeking_take_while/
DCargo.toml3by_ref` and `Iterator::take_while` together, and still get the first value for which the `take_whi…
5 keywords = ["iterator", "take_while", "peek", "by_ref"]
DMETADATA2by_ref` and `Iterator::take_while` together, and still get the first value for which the `take_whi…
DREADME.md9 `Iterator::by_ref`).
39 let xs_less_than_ten = iter_xs.by_ref().take_while(|x| *x < 10);
44 let ys_less_than_ten = iter_ys.by_ref().peeking_take_while(|y| *y < 10);
/external/rust/crates/syn-mid/src/
Dpat.rs46 pub by_ref: Option<Token![ref]>,
203 by_ref: input.parse()?, in pat_ident()
240 let by_ref: Option<Token![ref]> = input.parse()?; in field_pat() localVariable
244 if boxed.is_none() && by_ref.is_none() && mutability.is_none() && input.peek(Token![:]) in field_pat()
261 Pat::Ident(PatIdent { attrs: Vec::new(), by_ref, mutability, ident: ident.clone() }); in field_pat()
319 self.by_ref.to_tokens(tokens); in to_tokens()
/external/rust/crates/anyhow/src/
Derror.rs350 unsafe { ErrorImpl::backtrace(self.inner.by_ref()) } in backtrace()
377 unsafe { ErrorImpl::chain(self.inner.by_ref()) } in chain()
417 let addr = match (vtable(inner.ptr).object_downcast)(inner.by_ref(), target) { in downcast()
485 let addr = (vtable(self.inner.ptr).object_downcast)(self.inner.by_ref(), target)?; in downcast_ref()
502 (vtable(self.inner.ptr).object_downcast)(self.inner.by_ref(), target)?.by_mut(); in downcast_mut()
530 unsafe { ErrorImpl::error(self.inner.by_ref()) } in deref()
544 unsafe { ErrorImpl::display(self.inner.by_ref(), formatter) } in fmt()
550 unsafe { ErrorImpl::debug(self.inner.by_ref(), formatter) } in fmt()
751 (vtable(source.inner.ptr).object_downcast)(source.inner.by_ref(), target) in context_chain_downcast()
806 let backtrace = ErrorImpl::backtrace(unerased._object.error.inner.by_ref()); in context_backtrace()
[all …]
Dptr.rs48 pub fn by_ref(&self) -> Ref<T> { in by_ref() function
167 pub fn by_ref(self) -> Ref<'a, T> { in by_ref() function
Dcontext.rs146 Some(unsafe { crate::ErrorImpl::error(self.error.inner.by_ref()) }) in source()
/external/rust/crates/itertools/src/
Dk_smallest.rs7 let mut heap = iter.by_ref().take(k).collect::<BinaryHeap<_>>(); in k_smallest()
Dlazy_buffer.rs50 self.buffer.extend(self.it.by_ref().take(delta)); in prefill()
Dpeek_nth.rs68 self.buf.extend(self.iter.by_ref().take(unbuffered_items)); in peek_nth()
/external/clang/test/SemaCXX/
Dwarn-loop-analysis.cpp8 void by_ref(int &value) { } in by_ref() function
23 for (int i; i < 1; ) { by_ref(i); } in test1()
/external/rust/crates/tokio/docs/
Dreactor-refactor.md242 fn by_ref(&self) -> TcpStreamRef<'_>;
259 With `TcpStream::by_ref()`, `TcpStream::split()` is no longer needed. Instead,
263 let rd = my_stream.by_ref();
264 let wr = my_stream.by_ref();
275 let n = arc_stream.by_ref().read(buf).await?;
/external/rust/crates/syn/src/
Dpat.rs125 pub by_ref: Option<Token![ref]>,
450 by_ref: input.parse()?, in pat_ident()
515 let by_ref: Option<Token![ref]> = input.parse()?; in field_pat() localVariable
519 if boxed.is_none() && by_ref.is_none() && mutability.is_none() && input.peek(Token![:]) in field_pat()
537 by_ref, in field_pat()
783 self.by_ref.to_tokens(tokens); in to_tokens()
/external/llvm-project/clang/test/SemaCXX/
Dwarn-loop-analysis.cpp8 void by_ref(int &value) { } in by_ref() function
23 for (int i; i < 1; ) { by_ref(i); } in test1()
/external/rust/crates/getrandom/src/
Drdrand.rs87 for chunk in chunks.by_ref() { in rdrand_exact()
/external/rust/crates/syn/tests/
Dtest_receiver.rs28 fn by_ref(self: &Self); in test_by_ref()
/external/rust/crates/unicode-normalization/src/
Drecompose.rs64 for ch in self.iter.by_ref() { in next()
/external/rust/crates/itertools/examples/
Diris.rs42 for (index, part) in parts.by_ref().take(4).enumerate() { in from_str()
/external/rust/crates/remain/src/
Dcheck.rs135 pat.by_ref.is_none() && pat.mutability.is_none() && pat.subpat.is_none() in is_just_ident()
/external/deqp-deps/amber/src/vulkan/
Dengine_vulkan_debugger.cc296 auto it = sourceCache_.by_ref.find(ref); in SourceContent()
297 if (it != sourceCache_.by_ref.end()) { in SourceContent()
309 sourceCache_.by_ref.emplace(ref, lines); in SourceContent()
431 std::unordered_map<int64_t, SourceLines> by_ref; member
/external/rust/crates/paste/src/
Dattr.rs107 expanded.extend(tokens.by_ref().take(leading + 1)); // `doc =` in do_paste_name_value_attr()
/external/rust/crates/shlex/src/
Dlib.rs144 let res = shl.by_ref().collect(); in split()
/external/rust/crates/flate2/src/gz/
Dbufread.rs77 for byte in crc_reader.by_ref().bytes() { in read_gz_header()
91 for byte in crc_reader.by_ref().bytes() { in read_gz_header()
/external/rust/crates/criterion/src/html/
Dmod.rs457 .by_ref() in summarize()
478 .by_ref() in summarize()
496 let mut all_data = data.iter().by_ref().collect::<Vec<_>>(); in summarize()
/external/rust/crates/num-traits/src/
Dlib.rs260 for (i, c) in cs.by_ref() {
308 for (i, c) in cs.by_ref() {

123