pub unsafe trait Upcast<T>where
T: VcValueTrait + ?Sized,{ }Expand description
Marker trait that indicates that a Vc<Self> can be upcasted to a
Vc<T>.
See VcValueTrait for example usage.
§Safety
The implementor of this trait must ensure that Self implements the
trait T.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl Upcast<Box<dyn Effect>> for Box<dyn Effect>
impl Upcast<Box<dyn ValueDebug>> for ()
impl Upcast<Box<dyn ValueDebug>> for Box<dyn Effect>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn ValueDebug>> for Box<dyn ValueDebug>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn ValueDefault>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn ValueDebug>> for Box<dyn ValueToString>
Available on debug-assertions enabled only.