arc_dyn_any_to_arc_ref_t

Function arc_dyn_any_to_arc_ref_t 

Source
pub fn arc_dyn_any_to_arc_ref_t<T: Send + Sync + 'static>(
    aa: Arc<dyn Any + Send + Sync + 'static>,
) -> Result<ArcRef<T>, Arc<dyn Any + Send + Sync + 'static>>
Expand description

Try to downcast the result of WeakList::pop_lru back into an ArcRef<T>. Returns the passed Arc back in case of error.