Lines Matching full:arc
22 let a = Arc::new(1, GFP_KERNEL)?;
31 let a: Arc<&str> = b.into();
38 // `Arc` can be used to delegate dynamic dispatch and the following is an example.
40 // behaviour, contract or protocol on both `i32` and `&str` into a single `Arc` of
41 // type `Arc<dyn Display>`.
44 fn arc_dyn_print(arc: &Arc<dyn Display>) {
45 pr_info!("Arc<dyn Display> says {arc}");
48 let a_i32_display: Arc<dyn Display> = Arc::new(42i32, GFP_KERNEL)?;
49 let a_str_display: Arc<dyn Display> = a.clone();