Crate turbo_tasks_macros_shared

Source

Structs§

GenericTypeInput
The input of the generic_type macro.
PrimitiveInput
ValueTraitArguments
Arguments to the #[turbo_tasks::value_trait] attribute macro.

Functions§

expand_fields
Formats the fields of any structure or enum variant.
generate_destructuring
Generates a match arm destructuring pattern for the given fields.
generate_exhaustive_destructuring
Generates an exhaustive match arm destructuring pattern for the given fields. This is equivalent to calling generate_destructuring with a filter_field function that always returns true.
get_impl_function_ident
get_inherent_impl_function_id_ident
get_inherent_impl_function_ident
get_internal_trait_impl_function_ident
get_native_function_id_ident
get_native_function_ident
get_path_ident
get_read_ref_ident
get_register_trait_methods_ident
get_register_value_type_ident
get_trait_default_impl_function_id_ident
get_trait_default_impl_function_ident
get_trait_impl_function_id_ident
get_trait_impl_function_ident
get_trait_ref_ident
get_trait_type_id_ident
get_trait_type_ident
get_type_ident
get_value_type_id_ident
get_value_type_ident
get_value_type_init_ident
is_self_used
match_expansion
Handles the expansion of a struct/enum into a match statement that accesses every field for procedural code generation.