1
2
3
4
5
6
7
8
9
10
11
12
13
use std::sync::Arc;

impl<T: ?Sized> StdExt for T {}

pub trait StdExt {
    #[inline]
    fn arc(self) -> Arc<Self>
        where
            Self: Sized,
    {
        Arc::new(self)
    }
}