Trait TraitcastableTo

Source
pub trait TraitcastableTo<Target: 'static + ?Sized>: TraitcastableAny {
    const METADATA: DynMetadata<Target>;
}
Expand description

This trait must be implemented on every concrete type for every trait that TraitcastableAny should be able to downcast to.

This trait is not object save.

Required Associated Constants§

Source

const METADATA: DynMetadata<Target>

The metadata that is required to for the cast

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§