Trait tract_hir::internal::tract_downcast_rs::DowncastSync [−]
Extends Downcast
to support Sync
traits that thus support Arc
downcasting as well.
Required methods
pub fn into_any_arc(self: Arc<Self>) -> Arc<dyn Any + 'static + Sync + Send>
Convert Arc<Trait>
(where Trait: Downcast
) to Arc<Any>
. Arc<Any>
can then be
further downcast
into Arc<ConcreteType>
where ConcreteType
implements Trait
.
Implementors
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,