Derive Macro NonLocalValue

Source
#[derive(NonLocalValue)]
{
    // Attributes available to this derive:
    #[turbo_tasks]
}
Expand description

Implements NonLocalValue for a struct or enum by adding static (compile-time) assertions that every field implements NonLocalValue.

Fields that do not contain Vc can be excluded from assertions using TraceRawVcs’s #[turbo_tasks(trace_ignore)] annotation. This can be useful for third-party library types that cannot implement NonLocalValue due to the orphan rules.