Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 829 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 829 Bytes

Procedural Macros & Custom Derive Challenge

Objectives

  • Implement the CustomDebug derive to output the fields of a struct in a custom way.
    • The CustomDebug derive will implement the Debug trait for the struct.
    • Use syn::DeriveInput to get the fields of the struct.
    • Iterate over each field and output the field in a nice way.
  • Extra: Use custom attributes to affect your CustomDebug output.
    • Only output fields that are tagged with the #[debug] attribute.

Helpful Documentation