downcast_rs

Trait DowncastSync

Source
pub trait DowncastSync:
    Downcast
    + Send
    + Sync {
    // Required method
    fn into_any_arc(self: Arc<Self>) -> Arc<dyn Any + Send + Sync>;
}
Expand description

Extends Downcast to support Sync traits that thus support Arc downcasting as well.

Required Methods§

Source

fn into_any_arc(self: Arc<Self>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.

Implementors§

Source§

impl<T: Any + Send + Sync> DowncastSync for T