Attribute Macro value_trait

Source
#[value_trait]
Expand description

Allows this trait to be used as part of a trait object inside of a value cell, in the form of Vc<dyn MyTrait>.

§Arguments

Example: #[turbo_tasks::value_trait(no_debug, resolved)]

§’no_debug`

Disables the automatic implementation of ValueDebug.

Example: #[turbo_tasks::value_trait(no_debug)]

§’resolved`

Adds NonLocalValue as a supertrait of this trait.

Example: #[turbo_tasks::value_trait(resolved)]