macro_rules! type_identity {
    ($from:ty=>$to:ty; $expr:expr ) => { ... };
}
Expand description

Allows converting between Copy generic types that are the same concrete type.

Safety

This is safe to do, since both types are required to be the same concrete type inside the macro.