blob: ba15f7119d26b2b1fc4e66ede88f5b5cff309994 (
plain) (
tree)
|
|
macro_rules! ref_impl {
(impl<T: $traitb: ident $(+ $bound:ident)*> $traiti:ident for &T {
$($body:tt)*
}) => {
impl<'a, T: $traitb $(+ $bound)*> $traiti for &'a T {
$($body)*
}
impl<'a, T: $traitb $(+ $bound)*> $traiti for &'a mut T {
$($body)*
}
impl<T: $traitb $(+ $bound)*> $traiti for ::std::boxed::Box<T> {
$($body)*
}
};
}
|