Skip to content

Instantly share code, notes, and snippets.

@freedomtowin
Created June 28, 2025 21:17
Show Gist options
  • Select an option

  • Save freedomtowin/bf36172b1d694b5aa4259338efad3c63 to your computer and use it in GitHub Desktop.

Select an option

Save freedomtowin/bf36172b1d694b5aa4259338efad3c63 to your computer and use it in GitHub Desktop.
Example of creating a Gist using Python
Data::Struct(data_struct) => match &data_struct.fields {
Fields::Named(fields_named) => &fields_named.named,
_ => panic!("CustomDerive only supports named struct fields."),
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment