Skip to main content

ValueDebug

Trait ValueDebug 

Source
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§

Source

fn dbg_depth( &self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + '_>>

Like dbg, but with a depth limit.

Provided Methods§

Source

fn dbg(&self) -> Pin<Box<dyn Future<Output = Result<String>> + Send + '_>>

Trait Implementations§

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ValueDebug>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ValueToString>

Available on debug-assertions enabled only.
Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn Effect>

Available on debug-assertions enabled only.
Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ValueDefault>

Available on debug-assertions enabled only.
Source§

impl Upcast<Box<dyn ValueDebug>> for Completion

Source§

impl Upcast<Box<dyn ValueDebug>> for Completions

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn ValueDebug>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn ValueToString>

Available on debug-assertions enabled only.
Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn Effect>

Available on debug-assertions enabled only.
Source§

impl Upcast<Box<dyn ValueDebug>> for Effects

Source§

impl Upcast<Box<dyn ValueDebug>> for ()

Source§

impl Upcast<Box<dyn ValueDebug>> for String

Source§

impl Upcast<Box<dyn ValueDebug>> for RcStr

Source§

impl Upcast<Box<dyn ValueDebug>> for Option<String>

Source§

impl Upcast<Box<dyn ValueDebug>> for Option<RcStr>

Source§

impl Upcast<Box<dyn ValueDebug>> for Vec<RcStr>

Source§

impl Upcast<Box<dyn ValueDebug>> for Option<u16>

Source§

impl Upcast<Box<dyn ValueDebug>> for Option<u64>

Source§

impl Upcast<Box<dyn ValueDebug>> for bool

Source§

impl Upcast<Box<dyn ValueDebug>> for Option<bool>

Source§

impl Upcast<Box<dyn ValueDebug>> for u8

Source§

impl Upcast<Box<dyn ValueDebug>> for u16

Source§

impl Upcast<Box<dyn ValueDebug>> for u32

Source§

impl Upcast<Box<dyn ValueDebug>> for u64

Source§

impl Upcast<Box<dyn ValueDebug>> for u128

Source§

impl Upcast<Box<dyn ValueDebug>> for i8

Source§

impl Upcast<Box<dyn ValueDebug>> for i16

Source§

impl Upcast<Box<dyn ValueDebug>> for i32

Source§

impl Upcast<Box<dyn ValueDebug>> for i64

Source§

impl Upcast<Box<dyn ValueDebug>> for i128

Source§

impl Upcast<Box<dyn ValueDebug>> for usize

Source§

impl Upcast<Box<dyn ValueDebug>> for isize

Source§

impl Upcast<Box<dyn ValueDebug>> for Value

Source§

impl Upcast<Box<dyn ValueDebug>> for Duration

Source§

impl Upcast<Box<dyn ValueDebug>> for Vec<u8>

Source§

impl Upcast<Box<dyn ValueDebug>> for Vec<bool>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn ValueDefault>

Available on debug-assertions enabled only.
Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Completion

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Completions

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn ValueToString>

Available on debug-assertions enabled only.
Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn Effect>

Available on debug-assertions enabled only.
Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Effects

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for ()

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for String

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for RcStr

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Option<String>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Option<RcStr>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Vec<RcStr>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Option<u16>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Option<u64>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for bool

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Option<bool>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for u8

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for u16

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for u32

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for u64

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for u128

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for i8

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for i16

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for i32

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for i64

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for i128

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for usize

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for isize

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Value

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Duration

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Vec<u8>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Vec<bool>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn ValueDefault>

Available on debug-assertions enabled only.
Source§

impl VcValueTrait for Box<dyn ValueDebug>

Source§

const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>

The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
Source§

type ValueTrait = dyn ValueDebug

Source§

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".

Implementations on Foreign Types§

Source§

impl ValueDebug for ()

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Duration

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Option<RcStr>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Option<String>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Option<bool>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Option<u16>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Option<u64>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for RcStr

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for String

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Value

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Vec<RcStr>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Vec<bool>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for Vec<u8>

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for bool

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for i8

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for i16

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for i32

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for i64

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for i128

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for isize

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for u8

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for u16

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for u32

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for u64

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for u128

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Source§

impl ValueDebug for usize

Source§

fn dbg_depth<'a>( &'a self, depth: usize, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'a>>

Implementors§