Function core::mem::copy_lifetime
[−]
[src]
pub unsafe fn copy_lifetime<'a, S: ?Sized, T: ?Sized + 'a>(_ptr: &'a S, ptr: &T) -> &'a T
Deprecated since 1.2.0
: unclear that this function buys more safety and lifetimes are generally not handled as such in unsafe code today
Transforms lifetime of the second pointer to match the first.