pub trait ValueDebug:
Send
+ Sync
+ NonLocalValue {
// Required method
fn dbg_depth(
&self,
depth: usize,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + '_>>;
// Provided method
fn dbg(&self) -> Pin<Box<dyn Future<Output = Result<String>> + Send + '_>> { ... }
}Expand description
Debug-like trait for [Vc] types, automatically derived when using
turbo_tasks::value and turbo_tasks::value_trait.
§Usage
ⓘ
let trait_ref = any_vc.into_trait_ref().await?;
println!("{}", trait_ref.dbg().await?);Required Methods§
Provided Methods§
Trait Implementations§
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ValueDebug>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ValueToString>
Available on debug-assertions enabled only.
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn Effect>
Available on debug-assertions enabled only.
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ValueDefault>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn ValueDebug>> for Completion
impl Upcast<Box<dyn ValueDebug>> for Completions
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 Effect>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn ValueDebug>> for Effects
impl Upcast<Box<dyn ValueDebug>> for ()
impl Upcast<Box<dyn ValueDebug>> for String
impl Upcast<Box<dyn ValueDebug>> for RcStr
impl Upcast<Box<dyn ValueDebug>> for Option<String>
impl Upcast<Box<dyn ValueDebug>> for Option<RcStr>
impl Upcast<Box<dyn ValueDebug>> for Vec<RcStr>
impl Upcast<Box<dyn ValueDebug>> for Option<u16>
impl Upcast<Box<dyn ValueDebug>> for Option<u64>
impl Upcast<Box<dyn ValueDebug>> for bool
impl Upcast<Box<dyn ValueDebug>> for Option<bool>
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 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 usize
impl Upcast<Box<dyn ValueDebug>> for isize
impl Upcast<Box<dyn ValueDebug>> for Value
impl Upcast<Box<dyn ValueDebug>> for Duration
impl Upcast<Box<dyn ValueDebug>> for Vec<u8>
impl Upcast<Box<dyn ValueDebug>> for Vec<bool>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn ValueDefault>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Completion
impl UpcastStrict<Box<dyn ValueDebug>> for Completions
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn ValueToString>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn Effect>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Effects
impl UpcastStrict<Box<dyn ValueDebug>> for ()
impl UpcastStrict<Box<dyn ValueDebug>> for String
impl UpcastStrict<Box<dyn ValueDebug>> for RcStr
impl UpcastStrict<Box<dyn ValueDebug>> for Option<String>
impl UpcastStrict<Box<dyn ValueDebug>> for Option<RcStr>
impl UpcastStrict<Box<dyn ValueDebug>> for Vec<RcStr>
impl UpcastStrict<Box<dyn ValueDebug>> for Option<u16>
impl UpcastStrict<Box<dyn ValueDebug>> for Option<u64>
impl UpcastStrict<Box<dyn ValueDebug>> for bool
impl UpcastStrict<Box<dyn ValueDebug>> for Option<bool>
impl UpcastStrict<Box<dyn ValueDebug>> for u8
impl UpcastStrict<Box<dyn ValueDebug>> for u16
impl UpcastStrict<Box<dyn ValueDebug>> for u32
impl UpcastStrict<Box<dyn ValueDebug>> for u64
impl UpcastStrict<Box<dyn ValueDebug>> for u128
impl UpcastStrict<Box<dyn ValueDebug>> for i8
impl UpcastStrict<Box<dyn ValueDebug>> for i16
impl UpcastStrict<Box<dyn ValueDebug>> for i32
impl UpcastStrict<Box<dyn ValueDebug>> for i64
impl UpcastStrict<Box<dyn ValueDebug>> for i128
impl UpcastStrict<Box<dyn ValueDebug>> for usize
impl UpcastStrict<Box<dyn ValueDebug>> for isize
impl UpcastStrict<Box<dyn ValueDebug>> for Value
impl UpcastStrict<Box<dyn ValueDebug>> for Duration
impl UpcastStrict<Box<dyn ValueDebug>> for Vec<u8>
impl UpcastStrict<Box<dyn ValueDebug>> for Vec<bool>
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn ValueDefault>
Available on debug-assertions enabled only.
Source§impl VcValueTrait for Box<dyn ValueDebug>
impl VcValueTrait for Box<dyn ValueDebug>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".