Home
last modified time | relevance | path

Searched refs:RefCell (Results 1 – 25 of 82) sorted by relevance

1234

/external/rust/crates/criterion/src/stats/
Drand_util.rs2 use std::cell::RefCell;
8 static SEED_RAND: RefCell<Rand64> = RefCell::new(Rand64::new(
/external/rust/crates/itertools/src/
Dformat.rs2 use std::cell::RefCell;
14 inner: RefCell<Option<(I, F)>>,
28 inner: RefCell<Option<I>>,
37 inner: RefCell::new(Some((iter, f))), in new_format()
46 inner: RefCell::new(Some(iter)), in new_format_default()
Drciter_impl.rs4 use std::cell::RefCell;
10 pub rciter: Rc<RefCell<I>>,
50 RcIter { rciter: Rc::new(RefCell::new(iterable.into_iter())) } in rciter()
Dtee.rs3 use std::cell::RefCell;
24 rcbuffer: Rc<RefCell<TeeBuffer<I::Item, I>>>,
32 let t1 = Tee{rcbuffer: Rc::new(RefCell::new(buffer)), id: true}; in new()
/external/rust/crates/proc-macro-error/src/imp/
Dfallback.rs7 use std::cell::RefCell;
29 static ERR_STORAGE: RefCell<Vec<Diagnostic>> = RefCell::new(Vec::new());
/external/rust/crates/proc-macro-error/src/
Ddummy.rs117 use std::cell::RefCell;
122 static DUMMY_IMPL: RefCell<Option<TokenStream>> = RefCell::new(None);
/external/crosvm/devices/src/virtio/
Dblock_async.rs5 use std::cell::RefCell;
247 flush_timer: Rc<RefCell<TimerAsync>>, in process_one_request()
248 flush_timer_armed: Rc<RefCell<bool>>, in process_one_request()
287 queue: Rc<RefCell<Queue>>, in process_one_request_task()
291 interrupt: Rc<RefCell<Interrupt>>, in process_one_request_task()
292 flush_timer: Rc<RefCell<TimerAsync>>, in process_one_request_task()
293 flush_timer_armed: Rc<RefCell<bool>>, in process_one_request_task()
320 queue: Rc<RefCell<Queue>>, in handle_queue()
322 interrupt: Rc<RefCell<Interrupt>>, in handle_queue()
323 flush_timer: Rc<RefCell<TimerAsync>>, in handle_queue()
[all …]
Dballoon.rs5 use std::cell::RefCell;
163 interrupt: Rc<RefCell<Interrupt>>, in handle_queue()
196 interrupt: Rc<RefCell<Interrupt>>, in handle_stats_queue()
249 interrupt: Rc<RefCell<Interrupt>>, in handle_command_tube()
278 async fn handle_irq_resample(ex: &Executor, interrupt: Rc<RefCell<Interrupt>>) { in handle_irq_resample()
315 let interrupt = Rc::new(RefCell::new(interrupt)); in run_worker()
/external/rust/crates/serde_derive/src/internals/
Dctxt.rs2 use std::cell::RefCell;
16 errors: RefCell<Option<Vec<syn::Error>>>,
25 errors: RefCell::new(Some(Vec::new())), in new()
/external/rust/crates/tokio/src/runtime/
Dcontext.rs4 use std::cell::RefCell;
7 static CONTEXT: RefCell<Option<Handle>> = RefCell::new(None)
/external/rust/crates/tokio/tests/support/
Dmock_pool.rs3 use std::cell::RefCell;
11 static QUEUE: RefCell<VecDeque<Box<dyn FnOnce() + Send>>> = RefCell::new(VecDeque::new())
/external/rust/crates/syn/src/
Dlookahead.rs7 use std::cell::RefCell;
62 comparisons: RefCell<Vec<&'static str>>,
69 comparisons: RefCell::new(Vec::new()), in new()
/external/rust/crates/textwrap/src/core/
Doptimal_fit.rs2 use std::cell::RefCell;
7 line_numbers: RefCell<Vec<usize>>,
15 line_numbers: RefCell::new(line_numbers), in new()
/external/rust/crates/tokio/src/task/
Dtask_local.rs2 use std::cell::RefCell;
55 static __KEY: std::cell::RefCell<Option<$t>> = std::cell::RefCell::new(None);
97 pub inner: thread::LocalKey<RefCell<Option<T>>>,
/external/rust/crates/regex-automata/src/nfa/
Dcompiler.rs34 use std::cell::RefCell;
183 states: RefCell<Vec<CState>>,
189 utf8_state: RefCell<Utf8State>,
191 trie_state: RefCell<RangeTrie>,
194 utf8_suffix: RefCell<Utf8SuffixMap>,
197 remap: RefCell<Vec<StateID>>,
203 empties: RefCell<Vec<(StateID, StateID)>>,
256 states: RefCell::new(vec![]), in new()
258 utf8_state: RefCell::new(Utf8State::new()), in new()
259 trie_state: RefCell::new(RangeTrie::new()), in new()
[all …]
/external/crosvm/rutabaga_gfx/src/
Drenderer_utils.rs7 use std::cell::RefCell;
64 pub fence_state: Rc<RefCell<FenceState>>,
/external/crosvm/devices/src/virtio/vhost/user/
Dnet.rs5 use std::cell::RefCell;
31 handler: RefCell<VhostUserHandler>,
66 handler: RefCell::new(handler), in new()
Dblock.rs5 use std::cell::RefCell;
35 handler: RefCell<VhostUserHandler>,
68 handler: RefCell::new(handler), in new()
Dfs.rs5 use std::cell::RefCell;
29 handler: RefCell<VhostUserHandler>,
74 handler: RefCell::new(handler), in new()
/external/rust/crates/rusqlite/src/util/
Dparam_cache.rs2 use std::cell::RefCell;
9 pub(crate) struct ParamIndexCache(RefCell<BTreeMap<SmallCString, usize>>);
/external/rust/cxx/gen/build/src/
Dcfg.rs272 use std::cell::RefCell;
319 static CONST_DEREFS: RefCell<Map<Handle, Box<super::Cfg<'static>>>> = RefCell::default();
/external/rust/crates/regex/src/
Dpool.rs298 use std::cell::RefCell; in thread_owner_optimization()
301 let pool: Arc<Pool<RefCell<Vec<char>>>> = in thread_owner_optimization()
302 Arc::new(Pool::new(Box::new(|| RefCell::new(vec!['a'])))); in thread_owner_optimization()
/external/rust/crates/tokio/src/process/unix/
Dorphan.rs95 use std::cell::{Cell, RefCell};
102 pub(crate) all_enqueued: RefCell<Vec<W>>,
109 all_enqueued: RefCell::new(Vec::new()), in new()
/external/rust/crates/clang-sys/out/
Dcommon.rs17 use std::cell::RefCell;
56 static COMMAND_ERRORS: RefCell<HashMap<String, Vec<String>>> = RefCell::default();
/external/rust/crates/clang-sys/build/
Dcommon.rs17 use std::cell::RefCell;
56 static COMMAND_ERRORS: RefCell<HashMap<String, Vec<String>>> = RefCell::default();

1234