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.
Implementations on Foreign Types§
impl Upcast<Box<dyn ValueDebug>> for Option<bool>
impl Upcast<Box<dyn ValueDebug>> for Option<u16>
impl Upcast<Box<dyn ValueDebug>> for Option<u64>
impl Upcast<Box<dyn ValueDebug>> for Option<RcStr>
impl Upcast<Box<dyn ValueDebug>> for Option<String>
impl Upcast<Box<dyn ValueDebug>> for Value
impl Upcast<Box<dyn ValueDebug>> for bool
impl Upcast<Box<dyn ValueDebug>> for i8
impl Upcast<Box<dyn ValueDebug>> for i16
impl Upcast<Box<dyn ValueDebug>> for i32
impl Upcast<Box<dyn ValueDebug>> for i64
impl Upcast<Box<dyn ValueDebug>> for i128
impl Upcast<Box<dyn ValueDebug>> for isize
impl Upcast<Box<dyn ValueDebug>> for u8
impl Upcast<Box<dyn ValueDebug>> for u16
impl Upcast<Box<dyn ValueDebug>> for u32
impl Upcast<Box<dyn ValueDebug>> for u64
impl Upcast<Box<dyn ValueDebug>> for u128
impl Upcast<Box<dyn ValueDebug>> for ()
impl Upcast<Box<dyn ValueDebug>> for usize
impl Upcast<Box<dyn ValueDebug>> for RcStr
impl Upcast<Box<dyn ValueDebug>> for Box<dyn ValueDebug>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn ValueToString>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn ValueDebug>> for Box<dyn ValueDefault>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn ValueDebug>> for Box<dyn EffectCollectible>
Available on debug-assertions enabled only.