Have you ever wanted to write a structurally typed function in Rust? Do you spend a lot of time and effort getting your Rust
struct
s just so , and want to DRY-out data access for common field paths without declaring a newtrait
and implementing it for each struct (let’s say,Cat
andDog
both have aname: String
field)? If so, read on.
Read in full here:
This thread was posted by one of our members via one of our news source trackers.