dyn_cast_arc

Function dyn_cast_arc 

Source
pub fn dyn_cast_arc<T, DynInterface>(x: Arc<T>) -> Option<Arc<DynInterface>>
where DynInterface: Pointee<Metadata = DynMetadata<DynInterface>> + ?Sized + 'static, T: Pointee<Metadata = DynMetadata<T>> + SupportsInterfaces + ?Sized,
Expand description

Runtime-checking safe cast for Arced objects.