Function cast_ref

Source
pub fn cast_ref<U: 'static, V: 'static>(u: &U) -> Option<&V>