implement `Clone` for raw pointers