rustlings 1

Published at 2024/06/06

structs1

Coming back to working through Rustlings, on another flight. I’d better work on it in a non-flight context before this becomes my only Rustlings habit! I’m a little mystified by what I’m supposed to do with structs1. So, I’ll turn to my rust resources.

I read through a section in The Rust Programming Language about structs. From there I got I think the right syntax; I am reading it again because the content may not have percolated. It is non-obvious what a unit-like struct would be useful for. Some kind of scaffolding, I suppose. But! The exercise is working.

structs2

Well! That’s pretty damn convenient. If I have one struct instance, I can easily make a similar struct instance.

No Last Words © 2025