Trait intertrait::CastFromSync[][src]

pub trait CastFromSync: CastFrom + Sync + Send + 'static {
    fn arc_any(self: Arc<Self>) -> Arc<dyn Any + Sync + Send + 'static>;
}
Expand description

CastFromSync must be extended by a trait that is Any + Sync + Send + 'static and wants to allow for casting into another trait behind references and smart pointers especially including Arc.

It is used for obtaining a trait object for [Any + Sync + Send + 'static] from an object for its sub-trait, and blanket implemented for all Sized + Sync + Send + 'static types.

Examples

trait Source: CastFromSync {
    ...
}

Required methods

Implementations on Foreign Types

Implementors