pub trait ValueDebug:
Send
+ Sync
+ NonLocalValue {
// Required methods
fn dbg(self: Vc<Self>) -> Vc<ValueDebugString>
where Self: Sized;
fn dbg_depth(self: Vc<Self>, depth: usize) -> Vc<ValueDebugString>
where Self: Sized;
}
Expand description
Debug
-like trait for Vc
types, automatically derived when using
turbo_tasks::value
and turbo_tasks::value_trait
.
§Usage
ⓘ
dbg!(any_vc.dbg().await?);
Required Methods§
Trait Implementations§
Source§impl VcValueTrait for Box<dyn ValueDebug>
impl VcValueTrait for Box<dyn ValueDebug>
type ValueTrait = dyn ValueDebug
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Source§fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
Returns the vtable for an implementation of this trait.
Panics if ValueTypeId does not implement the trait.