1 2 3 4 5 6 7 8 9 10 11 12 13
macro_rules! clone_fields { ($name:ident, $($field:ident),+ $(,)*) => ( fn clone(&self) -> Self { $name { $( $field : self . $field .clone() ),* } } ); }
1 2 3 4 5 6 7 8 9 10 11 12 13
macro_rules! clone_fields { ($name:ident, $($field:ident),+ $(,)*) => ( fn clone(&self) -> Self { $name { $( $field : self . $field .clone() ),* } } ); }