/external/rust/crates/intrusive-collections/src/ |
D | pointer_ops.rs | 11 use crate::alloc::rc::Rc; 119 unsafe impl<T: ?Sized> PointerOps for DefaultPointerOps<Rc<T>> { 121 type Pointer = Rc<T>; 124 unsafe fn from_raw(&self, raw: *const T) -> Rc<T> { in from_raw() 125 Rc::from_raw(raw) in from_raw() 129 fn into_raw(&self, ptr: Rc<T>) -> *const T { in into_raw() 130 Rc::into_raw(ptr) in into_raw() 195 use std::rc::Rc; 215 let pointer_ops = DefaultPointerOps::<Rc<_>>::new(); in test_rc() 216 let p = Rc::new(1); in test_rc() [all …]
|
/external/crosvm/devices/src/virtio/ |
D | block_async.rs | 9 use std::rc::Rc; 246 disk_state: Rc<AsyncMutex<DiskState>>, in process_one_request() 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() 289 disk_state: Rc<AsyncMutex<DiskState>>, 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() 319 disk_state: Rc<AsyncMutex<DiskState>>, in handle_queue() [all …]
|
/external/rust/crates/weak-table/tests/ |
D | symbols.rs | 5 use std::rc::{Rc, Weak}; 8 pub struct Symbol(Rc<str>); 12 Rc::ptr_eq(&self.0, &other.0) in eq() 37 let rc = Rc::<str>::from(name); in intern() 38 self.0.insert(Rc::clone(&rc)); in intern()
|
/external/rust/crates/futures-executor/tests/ |
D | local_pool.rs | 7 use std::rc::Rc; 13 struct Pending(Rc<()>); 24 Pending(Rc::new(())) in pending() 70 let cnt = Rc::new(Cell::new(0)); in run_executes_spawned() 93 let cnt = Rc::new(Cell::new(0)); in run_spawn_many() 120 let cnt = Rc::new(Cell::new(0)); in try_run_one_executes_one_ready() 148 let cnt = Rc::new(Cell::new(0)); in try_run_one_returns_on_no_progress() 153 let waker: Rc<Cell<Option<Waker>>> = Rc::new(Cell::new(None)); in try_run_one_returns_on_no_progress() 184 let cnt = Rc::new(Cell::new(0)); in try_run_one_runs_sub_futures() 214 let cnt = Rc::new(Cell::new(0)); in run_until_stalled_returns_multiple_times() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonRegisterInfo.td | 64 // Rc - control registers 65 class Rc<bits<5> num, string n, 133 def USR_OVF : Rc<?, "usr.ovf">; 135 def USR : Rc<8, "usr", ["c8"]>, DwarfRegNum<[75]> { 141 def SA0 : Rc<0, "sa0", ["c0"]>, DwarfRegNum<[67]>; 142 def LC0 : Rc<1, "lc0", ["c1"]>, DwarfRegNum<[68]>; 143 def SA1 : Rc<2, "sa1", ["c2"]>, DwarfRegNum<[69]>; 144 def LC1 : Rc<3, "lc1", ["c3"]>, DwarfRegNum<[70]>; 145 def P3_0 : Rc<4, "p3:0", ["c4"], [P0, P1, P2, P3]>, 147 def C5 : Rc<5, "c5", ["c5"]>, DwarfRegNum<[72]>; // future use [all …]
|
/external/rust/crates/rusqlite/src/vtab/ |
D | array.rs | 32 use std::rc::Rc; 47 let _: Array = Rc::from_raw(p as *const Vec<Value>); in free_array() 51 pub type Array = Rc<Vec<Value>>; 200 use std::rc::Rc; 209 let ptr = Rc::new(values); in test_array_module() 214 assert_eq!(2, Rc::strong_count(&ptr)); in test_array_module() 222 assert_eq!(1, Rc::strong_count(&ptr)); in test_array_module()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonRegisterInfo.td | 52 // Rc - control registers 53 class Rc<bits<5> num, string n, 126 def USR_OVF : Rc<?, "usr.ovf">; 128 def USR : Rc<8, "usr", ["c8"]>, DwarfRegNum<[75]> { 134 def SA0: Rc<0, "sa0", ["c0"]>, DwarfRegNum<[67]>; 135 def LC0: Rc<1, "lc0", ["c1"]>, DwarfRegNum<[68]>; 136 def SA1: Rc<2, "sa1", ["c2"]>, DwarfRegNum<[69]>; 137 def LC1: Rc<3, "lc1", ["c3"]>, DwarfRegNum<[70]>; 138 def P3_0: Rc<4, "p3:0", ["c4"], [P0, P1, P2, P3]>, 142 def C5: Rc<5, "c5", ["c5"]>, DwarfRegNum<[72]>; [all …]
|
/external/rust/crates/futures/tests/ |
D | shared.rs | 3 use std::rc::Rc; 5 pub struct CountClone(pub Rc<Cell<i32>>); 92 use std::rc::Rc; in drop_in_poll() 94 let slot1 = Rc::new(RefCell::new(None)); in drop_in_poll() 180 use std::rc::Rc; in dont_clone_in_single_owner_shared_future() 184 let counter = CountClone(Rc::new(Cell::new(0))); in dont_clone_in_single_owner_shared_future() 200 use std::rc::Rc; in dont_do_unnecessary_clones_on_output() 204 let counter = CountClone(Rc::new(Cell::new(0))); in dont_do_unnecessary_clones_on_output()
|
/external/rust/crates/tokio/tests/ |
D | async_send_sync.rs | 10 use std::rc::Rc; 238 async_assert_fn!(tokio::sync::Mutex<Rc<u8>>::lock(_): !Send & !Sync); 241 async_assert_fn!(tokio::sync::Mutex<Rc<u8>>::lock_owned(_): !Send & !Sync); 247 async_assert_fn!(tokio::sync::RwLock<Rc<u8>>::read(_): !Send & !Sync); 248 async_assert_fn!(tokio::sync::RwLock<Rc<u8>>::write(_): !Send & !Sync); 253 async_assert_fn!(tokio::sync::broadcast::Receiver<Rc<u8>>::recv(_): !Send & !Sync); 257 async_assert_fn!(tokio::sync::mpsc::Receiver<Rc<u8>>::recv(_): !Send & !Sync); 260 async_assert_fn!(tokio::sync::mpsc::Sender<Rc<u8>>::send(_, Rc<u8>): !Send & !Sync); 264 async_assert_fn!(tokio::sync::mpsc::UnboundedReceiver<Rc<u8>>::recv(_): !Send & !Sync); 269 async_assert_fn!(tokio::sync::watch::Sender<Rc<u8>>::closed(_): !Send & !Sync); [all …]
|
/external/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonRegisterInfo.td | 65 // Rc - control registers 66 class Rc<bits<5> num, string n, 140 def USR_OVF : Rc<?, "usr.ovf">; 142 def USR : Rc<8, "usr", ["c8"]>, DwarfRegNum<[75]> { 148 def SA0: Rc<0, "sa0", ["c0"]>, DwarfRegNum<[67]>; 149 def LC0: Rc<1, "lc0", ["c1"]>, DwarfRegNum<[68]>; 150 def SA1: Rc<2, "sa1", ["c2"]>, DwarfRegNum<[69]>; 151 def LC1: Rc<3, "lc1", ["c3"]>, DwarfRegNum<[70]>; 152 def P3_0: Rc<4, "p3:0", ["c4"], [P0, P1, P2, P3]>, 156 def C5: Rc<5, "c5", ["c5"]>, DwarfRegNum<[72]>; [all …]
|
/external/rust/crates/rand/src/rngs/ |
D | thread.rs | 12 use std::rc::Rc; 63 rng: Rc<UnsafeCell<ReseedingRng<Core, OsRng>>>, 69 static THREAD_RNG_KEY: Rc<UnsafeCell<ReseedingRng<Core, OsRng>>> = { 75 Rc::new(UnsafeCell::new(rng))
|
/external/rust/crates/clap/src/args/ |
D | any_arg.rs | 4 use std::rc::Rc; 26 fn validator(&self) -> Option<&Rc<Fn(String) -> Result<(), String>>>; in validator() 27 fn validator_os(&self) -> Option<&Rc<Fn(&OsStr) -> Result<(), OsString>>>; in validator_os() 89 fn validator(&self) -> Option<&Rc<Fn(String) -> Result<(), String>>> { in validator() 92 fn validator_os(&self) -> Option<&Rc<Fn(&OsStr) -> Result<(), OsString>>> { in validator_os()
|
/external/rust/crates/rusqlite/src/types/ |
D | to_sql.rs | 106 impl<T: ToSql + ?Sized> ToSql for std::rc::Rc<T> { implementation 266 use std::{rc::Rc, sync::Arc}; in test_cells() 270 let s: Rc<Box<str>> = Rc::new(source_str.clone()); in test_cells() 290 let s: Rc<str> = Rc::from(&*source_str); in test_cells() 295 let s: Rc<dyn ToSql> = Rc::new(source_str); in test_cells()
|
/external/rust/crates/weak-table/ |
D | README.md | 47 use std::rc::{Rc, Weak}; 50 pub struct Symbol(Rc<str>); 54 Rc::ptr_eq(&self.0, &other.0) 79 let rc = Rc::<str>::from(name); 80 self.0.insert(Rc::clone(&rc));
|
/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/ |
D | minigbm.rs | 15 use std::rc::Rc; 42 minigbm_device: Rc<MinigbmDeviceInner>, 43 last_buffer: Option<Rc<MinigbmBuffer>>, 68 minigbm_device: Rc::new(MinigbmDeviceInner { _fd: fd, gbm }), in init() 130 self.last_buffer = Some(Rc::new(gbm_buffer)); in get_image_memory_requirements()
|
/external/rust/crates/itertools/src/ |
D | rciter_impl.rs | 3 use alloc::rc::Rc; 10 pub rciter: Rc<RefCell<I>>, 50 RcIter { rciter: Rc::new(RefCell::new(iterable.into_iter())) } in rciter()
|
D | tee.rs | 5 use alloc::rc::Rc; 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/downcast-rs/src/ |
D | lib.rs | 172 use __alloc::{boxed::Box, rc::Rc, sync::Arc}; 181 fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>; in into_any_rc() 192 fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any> { self } in into_any_rc() 270 self: $crate::__alloc::rc::Rc<Self> 271 … ) -> $crate::__std::result::Result<$crate::__alloc::rc::Rc<__T>, $crate::__alloc::rc::Rc<Self>> { 501 #[allow(dead_code)] struct Rc; 553 let rc: $crate::__alloc::rc::Rc<$base_type> = $crate::__alloc::rc::Rc::new(Foo(42));
|
/external/rust/crates/hashlink/tests/ |
D | linked_hash_map.rs | 385 use std::{cell::Cell, rc::Rc}; in test_drain() 387 struct Counter(Rc<Cell<u32>>); in test_drain() 397 let a = Rc::new(Cell::new(0)); in test_drain() 398 let b = Rc::new(Cell::new(0)); in test_drain() 399 let c = Rc::new(Cell::new(0)); in test_drain() 467 use std::{cell::Cell, rc::Rc}; in test_retain() 477 struct Counter(Rc<Cell<u32>>); in test_retain() 485 let c = Rc::new(Cell::new(0)); in test_retain() 488 map.insert(1, Counter(Rc::clone(&c))); in test_retain() 489 map.insert(2, Counter(Rc::clone(&c))); in test_retain() [all …]
|
/external/rust/crates/clap/src/args/arg_builder/ |
D | valued.rs | 2 use std::rc::Rc; 19 pub validator: Option<Rc<Fn(String) -> Result<(), String>>>, 20 pub validator_os: Option<Rc<Fn(&OsStr) -> Result<(), OsString>>>,
|
/external/rust/crates/weak-table/src/ |
D | ptr_weak_weak_hash_map.rs | 267 use std::rc::{Rc, Weak}; 279 let mut rcs: Vec<(Rc<u32>, Rc<f32>)> = Vec::new(); in insert_and_check() 282 rcs.push((Rc::new(i), Rc::new(i as f32 + 0.1))); in insert_and_check() 297 match weakmap.entry(Rc::clone(key)) { in insert_and_check()
|
/external/rust/crates/proc-macro2/src/ |
D | marker.rs | 3 use std::rc::Rc; 15 pub(crate) struct ProcMacroAutoTraits(Rc<()>);
|
/external/rust/crates/regex-automata/src/ |
D | determinize.rs | 3 use std::rc::Rc; 38 builder_states: Vec<Rc<State>>, 41 cache: HashMap<Rc<State>, S>, 64 let dead = Rc::new(State::dead()); in new() 237 let rstate = Rc::new(state); in add_state()
|
/external/rust/crates/syn/src/ |
D | parse.rs | 205 use std::rc::Rc; 264 unexpected: Cell<Option<Rc<Cell<Unexpected>>>>, 387 unexpected: Rc<Cell<Unexpected>>, in new_parse_buffer() 401 Chain(Rc<Cell<Unexpected>>), 429 fn inner_unexpected(buffer: &ParseBuffer) -> (Rc<Cell<Unexpected>>, Option<Span>) { in inner_unexpected() 440 pub(crate) fn get_unexpected(buffer: &ParseBuffer) -> Rc<Cell<Unexpected>> { in get_unexpected() 922 unexpected: Cell::new(Some(Rc::new(Cell::new(Unexpected::None)))), in fork() 1196 let unexpected = Rc::new(Cell::new(Unexpected::None)); in tokens_to_parse_buffer() 1223 let unexpected = Rc::new(Cell::new(Unexpected::None)); in __parse_scoped()
|
/external/adhd/cros_alsa/src/ |
D | control_primitive.rs | 23 Rc(i32), enumerator 31 Rc(rc) => write!(f, "{}", snd_strerror(*rc)?), in fmt() 191 return Err(Error::ElemIdMallocFailed(FFIError::Rc(rc))); in new() 255 return Err(Error::ElemValueMallocFailed(FFIError::Rc(rc))); in new() 302 return Err(Error::ElemInfoMallocFailed(FFIError::Rc(rc))); in new() 372 FFIError::Rc(rc), in new()
|