News for hackers. Stuff that matters.
Re:Type-checked keypaths in Rust by lnyng on Monday June 27, 2022 @02:22AM (#31891216)
I created something similar for our project “below” (https://github.com/facebookincubator/below/blob/main/below/b...).

The program collects system resource metrics into a data structure and we need to display the fields with different styles and formats. In order to decouple the data structure from rendering, Queriable (Keyable) and FieldId (combine KeyPath + mirror struct into enum) are used. I will definitely like to checkout the KeyPath implementation as it seems more general.

There are no comments on this comment yet.