fn to_tokens(&self, tokens: &mut syn::export::TokenStream2) {
        let mut state_macro_body = syn::export::TokenStream2::new();
        for (field_name, field_type, init_expr) in &self.fields {
            let current = quote! {
                #field_name: #field_type = #init_expr,
            };
            current.to_tokens(&mut state_macro_body);
        }
        
        // let view = &self.view;
        let t = quote! {
            State! {
                #state_macro_body
            };
        };

        t.to_tokens(tokens);
    }
// This only turns `self.fields` into tokens, ignoring view
This only turns `self.fields` into tokens, ignoring view
This only turns ` self . fields ` into tokens ignoring view
fn to_tokens(&self, tokens: &mut syn::export::TokenStream2) {
        let mut state_macro_body = syn::export::TokenStream2::new();
        for (field_name, field_type, init_expr) in &self.fields {
            let current = quote! {
                #field_name: #field_type = #init_expr,
            };
            current.to_tokens(&mut state_macro_body);
        }
        // let view = &self.view;
        let t = quote! {
            State! {
                #state_macro_body
            };
        };
        t.to_tokens(tokens);
    }
fn to_tokens ( & self , tokens : & mut syn :: export :: TokenStream2 ) { let mut state_macro_body = syn :: export :: TokenStream2 :: new ( ) ; for ( field_name , field_type , init_expr ) in & self . fields { let current = quote ! { field_name field_type init_expr } ; current . to_tokens ( & mut state_macro_body ) ; } // let view = &self.view; let t = quote ! { State { state_macro_body } } ; t . to_tokens ( tokens ) ; }
This only turns `self.fields` into tokens, ignoring view
This only turns ` self . fields ` into tokens ignoring view
&self
tokens
&mut syn::export::TokenStream2
&self
tokens
&mut syn::export::TokenStream2