Benign cargo Download

option.rs

SHA-256a1dae559adfb27e0261d73892b683866fa90f156cb67392cc74fd0fdbd6c5558
Malecule∅

Evidence

imports iter::plumbing::* lines 1–15
1//! Parallel iterator types for [options][std::option]
2//!
3//! You will rarely need to interact with this module directly unless you need
4//! to name one of the iterator types.
5//!
6//! [std::option]: https://doc.rust-lang.org/stable/std/option/
7
8use iter::*;
9use iter::plumbing::*;
10use std;
11use std::sync::atomic::{AtomicBool, Ordering};
12
13/// A parallel iterator over the value in [`Some`] variant of an [`Option`].
14///
15/// The iterator yields one va …
English function-word token "and" lines 166–169
166:33… all previous items collected are discarded,
167/// and it returns only `None`.
168impl<'a, C, T> FromParallelIterator<Option<T>> for Option<C>
169 where …
Rust materializes an iterator with .collect() lines 180–187
180:15… })
181 .while_some()
182 .collect();
183
184 if found_none.load(Ordering::Relaxed) {
185 None
186 } else {
187 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.