Searched refs:arc (Results 1 – 2 of 2) sorted by relevance
59 let arc: Arc<dyn U> = ...;60 let arc_t: Arc<T> = arc.downcast_arc::<T>().unwrap();63   如果`arc`的具体类型不是`Arc<T>`,那么`downcast_arc::<T>()`会返回`None`。
228 let arc = Arc::from_raw(ptr); in parse_unsafe_arc_ptr() localVariable230 arc.has_unsafe_arc_instance in parse_unsafe_arc_ptr()235 assert!(Arc::strong_count(&arc) > 0); in parse_unsafe_arc_ptr()236 return arc; in parse_unsafe_arc_ptr()