pub fn dyn_cast_ref<T: SupportsInterfaces + ?Sized, DynInterface>(
x: &T,
) -> Option<&DynInterface>Expand description
Runtime-checking safe cast for shared references.
pub fn dyn_cast_ref<T: SupportsInterfaces + ?Sized, DynInterface>(
x: &T,
) -> Option<&DynInterface>Runtime-checking safe cast for shared references.