Benign cargo Download

nightly_lazy.rs

SHA-25631619f7467766127ca049df5d14f82384f6f756db52fc388421ef8a39ba5465f
Malecule∅

Evidence

imports self::std::cell::UnsafeCell lines 1–11
1extern crate std;
2
3use self::std::prelude::v1::*;
4use self::std::cell::UnsafeCell;
5use self::std::sync::{Once, ONCE_INIT};
6
7pub struct Lazy<T: Sync>(UnsafeCell<Option<T>>, Once);
⋯4 lines
Rust calls a .get() accessor lines 20–25
20:10… self.1.call_once(|| {
21 *self.0.get() = Some(f());
22 });
23
24 match *self.0.get() {
25 Some(ref x) => …
English function-word token "for" lines 29–36
29:4… }
30}
31
32unsafe impl<T: Sync> Sync for Lazy<T> {}
33
34#[macro_export]
35#[allow_internal_unstable]
36macro_ru …

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.