evobench_tools/utillib/
arc.rs

1use std::sync::Arc;
2
3pub fn arc<T>(v: &Arc<T>) -> Arc<T> {
4    v.clone()
5}
6
7pub trait CloneArc {
8    fn clone_arc(&self) -> Self;
9}
10
11impl<T: ?Sized> CloneArc for Arc<T> {
12    fn clone_arc(&self) -> Self {
13        self.clone()
14    }
15}