---
title: "Comment by Daan Hoekstra on \"Rust Structs: From Scattered Variables to Organized, Method-Powered Types\" | Hashnode"
description: "The Rectangle refactor is the moment structs go from \"nice to have\" to \"obviously correct.\" Good framing to anchor the whole piece around that. One thing worth"
url: "https://hashnode.com/posts/rust-structs-from-scattered-variables-to-organized-method-powered-types/6a04167952a9c969d60c0fa8/comment/6a047858a0c1540277364915"
---

[Discussion](https://hashnode.com/posts/rust-structs-from-scattered-variables-to-organized-method-powered-types/6a04167952a9c969d60c0fa8)

Comment [Rust Structs: From Scattered Variables to Organized, Method-Powered Types](https://hashnode.com/posts/rust-structs-from-scattered-variables-to-organized-method-powered-types/6a04167952a9c969d60c0fa8)

[Daan Hoekstra](https://hashnode.com/@daanhoekstra)

[May 13](https://hashnode.com/posts/rust-structs-from-scattered-variables-to-organized-method-powered-types/6a04167952a9c969d60c0fa8/comment/6a047858a0c1540277364915)

The Rectangle refactor is the moment structs go from "nice to have" to "obviously correct." Good framing to anchor the whole piece around that. One thing worth adding in a follow-up: once you have methods on a struct, the ownership behavior of &self vs &mut self vs consuming self becomes the next natural puzzle. The impl block is where Rust's ownership model starts to feel intentional rather than arbitrary.
