StructuralExpansionFieldsExt

Trait StructuralExpansionFieldsExt 

Source
trait StructuralExpansionFieldsExt {
    // Required method
    fn arm_expr(
        &self,
        method: &Path,
        skipped_indices: &HashSet<usize, DeterministicState>,
    ) -> TokenStream;
}
Expand description

Extension of syn::Fields used by a StructuralExpansion.

Required Methods§

Source

fn arm_expr( &self, method: &Path, skipped_indices: &HashSet<usize, DeterministicState>, ) -> TokenStream

Generates a resulting expression with these syn::Fields in a matched arm of a match expression, by applying the specified method.

Implementations on Foreign Types§

Source§

impl StructuralExpansionFieldsExt for Fields

Source§

fn arm_expr( &self, method_path: &Path, skipped_indices: &HashSet<usize, DeterministicState>, ) -> TokenStream

Implementors§