DowncastSync

Trait DowncastSync 

Source
pub trait DowncastSync<T>: Downcast<T> + AnySync
where T: AnySync,
{ // Provided method fn downcast_arc(self: Arc<Self>) -> Result<Arc<T>, DowncastError<Arc<Self>>> { ... } }

Provided Methods§

Source

fn downcast_arc(self: Arc<Self>) -> Result<Arc<T>, DowncastError<Arc<Self>>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<_T> DowncastSync<_T> for dyn AnySync
where _T: AnySync,