Home
last modified time | relevance | path

Searched refs:Once (Results 1 – 25 of 1104) sorted by relevance

12345678910>>...45

/external/rust/crates/spin/src/
Donce.rs29 pub struct Once<T> { struct
34 impl<T: fmt::Debug> fmt::Debug for Once<T> { argument
47 unsafe impl<T: Send + Sync> Sync for Once<T> {} implementation
48 unsafe impl<T: Send> Send for Once<T> {} implementation
59 impl<T> Once<T> { impl
68 pub const fn new() -> Once<T> { in new()
73 pub const fn initialized(data: T) -> Once<T> { in initialized()
249 impl<T> From<T> for Once<T> { implementation
255 impl<T> Drop for Once<T> { implementation
285 use super::Once;
[all …]
Dlazy.rs7 use crate::Once;
42 cell: Once<T>,
57 unsafe impl<T, F: Send> Sync for Lazy<T, F> where Once<T>: Sync {}
64 Lazy { cell: Once::new(), init: Cell::new(Some(f)) } in new()
/external/rust/crates/parking_lot/src/
Donce.rs83 pub struct Once(AtomicU8); struct
85 impl Once { implementation
88 pub const fn new() -> Once { in new()
89 Once(AtomicU8::new(0)) in new()
281 struct PanicGuard<'a>(&'a Once); in call_once_slow()
318 impl Default for Once { implementation
320 fn default() -> Once { in default()
321 Once::new() in default()
325 impl fmt::Debug for Once { implementation
335 use crate::Once;
[all …]
/external/rust/crates/spin/
DCHANGELOG.md20 - Prevented `Once` leaking the inner value upon drop
26 - `Once::initialized`
27 - `Once::get_mut`
28 - `Once::try_into_inner`
29 - `Once::poll`
30 - `RwLock`, `Mutex` and `Once` now implement `From<T>`
39 - `Once::wait` now spins even if initialization has not yet started
/external/rust/crates/futures-util/src/stream/
Donce.rs20 pub fn once<Fut: Future>(future: Fut) -> Once<Fut> { in once()
21 assert_stream::<Fut::Output, _>(Once::new(future)) in once()
28 pub struct Once<Fut> {
34 impl<Fut> Once<Fut> { implementation
40 impl<Fut: Future> Stream for Once<Fut> { implementation
63 impl<Fut: Future> FusedStream for Once<Fut> { implementation
/external/rust/crates/tokio-stream/src/
Donce.rs10 pub struct Once<T> { struct
14 impl<I> Unpin for Once<I> {} implementation
36 pub fn once<T>(value: T) -> Once<T> { in once()
37 Once { in once()
42 impl<T> Stream for Once<T> { implementation
/external/rust/crates/rayon/src/iter/
Donce.rs24 pub fn once<T: Send>(item: T) -> Once<T> { in once()
25 Once { item } in once()
30 pub struct Once<T: Send> { struct
34 impl<T: Send> ParallelIterator for Once<T> { implementation
49 impl<T: Send> IndexedParallelIterator for Once<T> { implementation
/external/rust/crates/protobuf/src/
Dlazy.rs17 pub lock: sync::Once,
28 lock: sync::Once::new(),
42 let lock: &sync::Once = unsafe { mem::transmute(&self.lock) }; in get()
55 pub const ONCE_INIT: sync::Once = sync::Once::new();
Dlazy_v2.rs9 lock: sync::Once,
18 lock: sync::Once::new(),
/external/rust/crates/lazy_static/src/
Dcore_lazy.rs10 use self::spin::Once;
12 pub struct Lazy<T: Sync>(Once<T>);
15 pub const INIT: Self = Lazy(Once::INIT);
Dinline_lazy.rs14 use self::std::sync::Once;
19 pub struct Lazy<T: Sync>(Cell<Option<T>>, Once);
/external/rust/crates/proc-macro2/src/
Ddetection.rs3 use std::sync::Once;
6 static INIT: Once = Once::new();
/external/rust/crates/no-panic/tests/compiletest/
Dmod.rs3 use std::sync::Once;
6 static BUILD: Once = Once::new(); in setup()
/external/rust/crates/lazy_static/tests/
Dtest.rs110 struct Once(X); struct
111 const ONCE_INIT: Once = Once(X);
122 test(vec![X, Once(X).0, ONCE_INIT.0, DATA, ONCE,
/external/rust/crates/mio/src/sys/windows/
Dnet.rs4 use std::sync::Once;
15 static INIT: Once = Once::new(); in init()
/external/rust/crates/plotters/src/element/
Dpoints.rs30 type IntoIter = std::iter::Once<&'a Coord>;
31 fn point_iter(self) -> std::iter::Once<&'a Coord> { in point_iter()
73 type IntoIter = std::iter::Once<&'a Coord>;
74 fn point_iter(self) -> std::iter::Once<&'a Coord> { in point_iter()
Dcomposable.rs4 use std::iter::{once, Once};
40 type IntoIter = Once<&'a Coord>;
68 type IntoIter = Once<&'b Coord>;
136 type IntoIter = Once<&'b Coord>;
/external/libchrome/base/
Dbind_helpers.h45 return Once<Args...>();
54 static OnceCallback<void(Args...)> Once() { in Once() function
/external/rust/crates/tokio/src/signal/
Dwindows.rs15 use std::sync::Once;
95 static INIT: Once = Once::new(); in global_init()
Dunix.rs17 use std::sync::Once;
189 init: Once,
197 init: Once::new(), in default()
/external/llvm-project/clang/tools/clang-format-vs/
DREADME.txt20 Once LLVM.sln is generated, build the clang_format_vsix target, which will build
25 ClangFormat/source.extension.vsixmanifest. Once the plug-in has been built with
33 Once you've built the clang_format_vsix project from LLVM.sln at least once,
/external/google-breakpad/docs/
Dcontributing_to_breakpad.md17 Contributor License Agreement</a>. Once completed this document will need to be
29 Once you have signed the agreement you can be added to our contributors list and
/external/rust/crates/rand/src/rngs/adapter/
Dreseeding.rs285 use std::sync::Once;
312 static REGISTER: Once = Once::new(); in register_fork_handler()
/external/rust/crates/rusqlite/src/
Dinner_connection.rs309 static SQLITE_VERSION_CHECK: std::sync::Once = std::sync::Once::new();
358 static SQLITE_INIT: std::sync::Once = std::sync::Once::new();
/external/crosvm/integration_tests/tests/
Dfixture.rs10 use std::sync::Once;
241 static PREP_ONCE: Once = Once::new(); in new()

12345678910>>...45