Benign cargo Download

while_some.rs

SHA-2564e0bdd0d6ac55ec0ef38ff9f485ca6d5a9fbcff50d74b894b93bdcaab2577354
Malecule∅

Evidence

imports std::sync::atomic::AtomicBool lines 1–10
1use std::sync::atomic::{AtomicBool, Ordering};
2use super::plumbing::*;
3use super::*;
4
5/// `WhileSome` is an iterator that yields the `Some` elements of an iterator,
6/// halting as soon as any `None` is produced.
7///
8/// This struct is created by the [`while_some()`] method on [`ParallelIterator`]
9///
10/// [`while_some() …
English function-word token "and" lines 11–14
11:48… r.html
12#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
13#[derive(Debug, Clone)]
14pub struct WhileSome<I: ParallelIterator> …
English function-word token "for" lines 24–31
24:13… e { base: base }
25}
26
27impl<I, T> ParallelIterator for WhileSome<I>
28 where I: ParallelIterator<Item = Option<T>>,
29 T: Send
30{
31 type Item …

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.