Structs

This map links the Structs-domain notes for modeling named data, attaching behavior, and avoiding struct-specific ownership and mutability footguns.

Concepts

Patterns

Antipatterns

See also

Ownership · Borrowing · Lifetimes · Traits · Derive Macros · Newtype Pattern · Visibility and Privacy · Making Invalid States Unrepresentable

Sources