interprocess 2.4.0

Interprocess communication toolkit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Forwarding of `TryClone` for newtypes. Is also a derive macro in some sense.

macro_rules! forward_try_clone {
    ($({$($lt:tt)*})? $ty:ty) => {
        impl $(<$($lt)*>)? $crate::TryClone for $ty {
            #[inline]
            fn try_clone(&self) -> ::std::io::Result<Self> {
                Ok(Self($crate::TryClone::try_clone(&self.0)?))
            }
        }
    };
}