Function to_static

Source
pub fn to_static<T>(ptr: &T) -> &'static T