Created
June 28, 2025 21:17
-
-
Save freedomtowin/661aeee1e5a8fc232798e1f54a4815fc to your computer and use it in GitHub Desktop.
Example of creating a Gist using Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let default_fields = fields.iter().map(|f| { | |
| let fname = &f.ident; | |
| quote! { #fname: Default::default() } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment